Author: mturk
Date: Sat May  5 11:19:36 2012
New Revision: 1334399

URL: http://svn.apache.org/viewvc?rev=1334399&view=rev
Log:
make sure connections count doesn't go negative. Decrement only if socket was 
actually open

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=1334399&r1=1334398&r2=1334399&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_ajp_common.c (original)
+++ tomcat/jk/trunk/native/common/jk_ajp_common.c Sat May  5 11:19:36 2012
@@ -768,8 +768,8 @@ static void ajp_abort_endpoint(ajp_endpo
         else {
             jk_shutdown_socket(ae->sd, l);
         }
+        ae->worker->s->connected--;
     }
-    ae->worker->s->connected--;
     ae->sd = JK_INVALID_SOCKET;
     ae->last_op = JK_AJP13_END_RESPONSE;
     JK_TRACE_EXIT(l);



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

Reply via email to