tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r552601 - /tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c
Date Mon, 02 Jul 2007 21:44:41 GMT
Author: rjung
Date: Mon Jul  2 14:44:40 2007
New Revision: 552601

URL: http://svn.apache.org/viewvc?view=rev&rev=552601
Log:
The lock line has been moved in r552292, so we should
also move the result check for the locking.

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

Modified: tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c?view=diff&rev=552601&r1=552600&r2=552601
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c Mon Jul  2 14:44:40 2007
@@ -723,11 +723,11 @@
     jk_sock_t sock;
 
     JK_ENTER_CS(&aw->cs, rc);
-    sock = ae->sd;
-    /* Mark existing endpoint socket as closed */
-    ae->sd = JK_INVALID_SOCKET;
     if (rc) {
         unsigned int i;
+        sock = ae->sd;
+        /* Mark existing endpoint socket as closed */
+        ae->sd = JK_INVALID_SOCKET;
         for (i = 0; i < aw->ep_cache_sz; i++) {
             /* Find cache slot with usable socket */
             if (aw->ep_cache[i] && IS_VALID_SOCKET(aw->ep_cache[i]->sd))
{



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


Mime
View raw message