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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org