ASF Bugzilla – Attachment 26323 Details for
Bug 50273
AprEndpoint logs socket accept fails altough error is harmless
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for Tomcat 7
bug50273-tc7.patch (text/plain), 1.59 KB, created by
Mark Thomas
on 2010-11-21 14:38:37 UTC
(
hide
)
Description:
Proposed patch for Tomcat 7
Filename:
MIME Type:
Creator:
Mark Thomas
Created:
2010-11-21 14:38:37 UTC
Size:
1.59 KB
patch
obsolete
>Index: java/org/apache/tomcat/util/net/AprEndpoint.java >=================================================================== >--- java/org/apache/tomcat/util/net/AprEndpoint.java (revision 1036389) >+++ java/org/apache/tomcat/util/net/AprEndpoint.java (working copy) >@@ -912,6 +912,7 @@ > */ > 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 @@ > } > } 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 50773 >+ log.warn(msg, t); >+ } else { >+ log.error(msg, t); >+ } >+ } else { >+ log.error(msg, t); >+ } >+ } > } > > // The processor will recycle itself when it finishes
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 50273
: 26323 |
26324