Author: mturk
Date: Sat Jun 18 10:41:08 2011
New Revision: 1137160
URL: http://svn.apache.org/viewvc?rev=1137160&view=rev
Log:
Increment connected counter only if we are really connected. This fixes the Con
display in status worker that increments on each failed connected and never
goes down
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=1137160&r1=1137159&r2=1137160&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_ajp_common.c (original)
+++ tomcat/jk/trunk/native/common/jk_ajp_common.c Sat Jun 18 10:41:08 2011
@@ -997,7 +997,6 @@ int ajp_connect_to_endpoint(ajp_endpoint
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,
@@ -1012,6 +1011,7 @@ int ajp_connect_to_endpoint(ajp_endpoint
JK_TRACE_EXIT(l);
return JK_FALSE;
}
+ ae->worker->s->connected++;
/* set last_access only if needed */
if (ae->worker->cache_timeout > 0)
ae->last_access = time(NULL);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]