Add log.warn if unlockAccept fails to wakeup the listening socket
authormturk <mturk@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 4 Oct 2010 08:52:11 +0000 (08:52 +0000)
committermturk <mturk@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 4 Oct 2010 08:52:11 +0000 (08:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1004145 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/AprEndpoint.java
java/org/apache/tomcat/util/net/res/LocalStrings.properties

index ce40830..8b5df23 100644 (file)
@@ -98,7 +98,7 @@ public class AprEndpoint extends AbstractEndpoint {
 
     protected ConcurrentLinkedQueue<SocketWrapper<Long>> waitingRequests =
         new ConcurrentLinkedQueue<SocketWrapper<Long>>();
-    
+
     // ------------------------------------------------------------- Properties
 
 
@@ -619,6 +619,8 @@ public class AprEndpoint extends AbstractEndpoint {
                         // Ignore
                     }
                     if (c++ > 60) {
+                        log.warn(sm.getString("endpoint.warn.unlockAcceptFailed",
+                                 acceptors[i].getName()));
                         // If the Acceptor is still running force
                         // the hard socket close.
                         if (serverSock != 0) {
@@ -992,7 +994,7 @@ public class AprEndpoint extends AbstractEndpoint {
                         processSocketAsync(socket,SocketStatus.TIMEOUT);
                     }
                 }
-                
+
                 // Loop if endpoint is paused
                 while (paused && running) {
                     try {
@@ -1001,12 +1003,12 @@ public class AprEndpoint extends AbstractEndpoint {
                         // Ignore
                     }
                 }
-                
+
             }
         }
     }
-    
-    
+
+
     // ----------------------------------------------------- Poller Inner Class
     /**
      * Poller class.
index bb70316..95c3aa3 100644 (file)
@@ -42,3 +42,4 @@ endpoint.sendfile.error=Unexpected sendfile error
 endpoint.sendfile.addfail=Sendfile failure: [{0}] {1}
 endpoint.sendfile.nosupport=Disabling sendfile, since either the APR version or the system doesn't support it
 endpoint.warn.noInsecureReneg=Secure renegotation is not supported by the SSL library {0}
+endpoint.warn.unlockAcceptFailed=unlockAccept call failed for Acceptor thread [{0}]