don't log io exception if the connector is not running
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 27 Mar 2007 06:48:01 +0000 (06:48 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 27 Mar 2007 06:48:01 +0000 (06:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@522774 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/JIoEndpoint.java
java/org/apache/tomcat/util/net/NioEndpoint.java
webapps/docs/changelog.xml

index 7f2af0f..eac333e 100644 (file)
@@ -318,6 +318,8 @@ public class JIoEndpoint {
                             // Ignore
                         }
                     }
+                }catch ( IOException x ) {
+                    if ( running ) log.error(sm.getString("endpoint.accept.fail"), x);
                 } catch (Throwable t) {
                     log.error(sm.getString("endpoint.accept.fail"), t);
                 }
index 79c7760..39762b5 100644 (file)
@@ -1192,6 +1192,8 @@ public class NioEndpoint {
                             }
                         } 
                     }
+                }catch ( IOException x ) {
+                    if ( running ) log.error(sm.getString("endpoint.accept.fail"), x);
                 } catch (OutOfMemoryError oom) {
                     try {
                         oomParachuteData = null;
@@ -2126,6 +2128,7 @@ public class NioEndpoint {
         }
 
     }
+    
     // ---------------------------------------------- TaskQueue Inner Class
     public static class TaskQueue extends LinkedBlockingQueue<Runnable> {
         ThreadPoolExecutor parent = null;
index 15df701..1070a21 100644 (file)
@@ -18,6 +18,9 @@
   <subsection name="Catalina">
     <changelog>
       <fix>
+        <bug>41530  </bug>Don't log error messages when connector is stopped (fhanik)
+      </fix>
+      <fix>
         <bug>41166</bug> Invalid handling when using replicated context (fhanik)
       </fix>
       <add>