From: markt Date: Mon, 22 Nov 2010 13:42:01 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50273 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=030e03a211ec2c80abe7c49e3dbaf0bcf1179305;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50273 Provide a workaround for an HP-UX issue that can result in large numbers of SEVERE log messages appearing in the logs as a result of normal operation. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1037715 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/net/AprEndpoint.java b/java/org/apache/tomcat/util/net/AprEndpoint.java index fcf8349bf..1fda4e758 100644 --- a/java/org/apache/tomcat/util/net/AprEndpoint.java +++ b/java/org/apache/tomcat/util/net/AprEndpoint.java @@ -912,6 +912,7 @@ public class AprEndpoint extends AbstractEndpoint { */ protected class Acceptor extends Thread { + private final Log log = LogFactory.getLog(AprEndpoint.Acceptor.class); /** * The background thread that listens for incoming TCP/IP connections and @@ -954,7 +955,22 @@ public class AprEndpoint extends AbstractEndpoint { } } catch (Throwable t) { ExceptionUtils.handleThrowable(t); - if (running) log.error(sm.getString("endpoint.accept.fail"), t); + if (running) { + String msg = sm.getString("endpoint.accept.fail"); + if (t instanceof Error) { + Error e = (Error) t; + if (e.getError() == 233) { + // Not an error on HP-UX so log as a warning + // so it can be filtered out on that platform + // See bug 50273 + log.warn(msg, t); + } else { + log.error(msg, t); + } + } else { + log.error(msg, t); + } + } } // The processor will recycle itself when it finishes diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 678ca77a5..f9dce07ce 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -197,6 +197,11 @@ 50192: Improve performance for EL when running under a security manager. Based on a patch by Robert Goff. (markt) + + 50273: Provide a workaround for an HP-UX issue that can + result in large numbers of SEVERE log messages appearing in the logs as + a result of normal operation. (markt) + 50293: Increase the size of internal ELResolver array from 2 to 8 since in typical usage there are at least 5 resolvers. Based on a