You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2010/02/23 07:50:25 UTC

svn commit: r915206 - /tomcat/jk/trunk/native/common/jk_ajp_common.c

Author: rjung
Date: Tue Feb 23 06:50:24 2010
New Revision: 915206

URL: http://svn.apache.org/viewvc?rev=915206&view=rev
Log:
Connection counting is hard:
often we shutdown a socket due to errors and
decrement the counter. So we need to increment
it when trying to connect, even if it fails.

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

Modified: tomcat/jk/trunk/native/common/jk_ajp_common.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_ajp_common.c?rev=915206&r1=915205&r2=915206&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_ajp_common.c (original)
+++ tomcat/jk/trunk/native/common/jk_ajp_common.c Tue Feb 23 06:50:24 2010
@@ -947,6 +947,7 @@
     JK_TRACE_ENTER(l);
 
     ae->last_errno = 0;
+    ae->worker->s->connected++;
     ae->sd = jk_open_socket(&ae->worker->worker_inet_addr,
                             ae->worker->keepalive,
                             ae->worker->socket_timeout,
@@ -961,7 +962,6 @@
         JK_TRACE_EXIT(l);
         return JK_FALSE;
     }
-    ae->worker->s->connected++;
     ae->last_errno = 0;
     if (JK_IS_DEBUG_LEVEL(l)) {
         jk_log(l, JK_LOG_DEBUG,



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