Author: mturk
Date: Fri Sep 17 12:48:57 2010
New Revision: 998099

URL: http://svn.apache.org/viewvc?rev=998099&view=rev
Log:
Log socket timeout

Modified:
    tomcat/jk/trunk/native/common/jk_connect.c

Modified: tomcat/jk/trunk/native/common/jk_connect.c
URL: 
http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_connect.c?rev=998099&r1=998098&r2=998099&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_connect.c (original)
+++ tomcat/jk/trunk/native/common/jk_connect.c Fri Sep 17 12:48:57 2010
@@ -1002,6 +1002,11 @@ int jk_is_input_event(jk_sock_t sd, int 
     } while (rc < 0 && errno == EINTR);
 
     if (rc == 0) {
+        if (JK_IS_DEBUG_LEVEL(l)) {
+            jk_log(l, JK_LOG_DEBUG,
+                   "timeout during poll on socket sd = %d (timeout=%d)",
+                   sd, timeout);
+        }
         /* Timeout. Set the errno to timeout */
         errno = ETIMEDOUT;
         JK_TRACE_EXIT(l);
@@ -1053,6 +1058,11 @@ int jk_is_input_event(jk_sock_t sd, int 
     } while (rc < 0 && errno == EINTR);
 
     if (rc == 0) {
+        if (JK_IS_DEBUG_LEVEL(l)) {
+            jk_log(l, JK_LOG_DEBUG,
+                   "timeout during select on socket sd = %d (timeout=%d)",
+                   sd, timeout);
+        }
         /* Timeout. Set the errno to timeout */
 #if defined(WIN32) || (defined(NETWARE) && defined(__NOVELL_LIBC__))
         errno = WSAETIMEDOUT - WSABASEERR;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to