tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r695787 - /tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c
Date Tue, 16 Sep 2008 09:31:27 GMT
Author: mturk
Date: Tue Sep 16 02:31:27 2008
New Revision: 695787

URL: http://svn.apache.org/viewvc?rev=695787&view=rev
Log:
Log only closure for valid sockets

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?rev=695787&r1=695786&r2=695787&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c Tue Sep 16 02:31:27 2008
@@ -735,16 +735,15 @@
 /*
  * Close the endpoint (close pool and close socket)
  */
-
 void ajp_close_endpoint(ajp_endpoint_t * ae, jk_logger_t *l)
 {
     JK_TRACE_ENTER(l);
 
-    if (JK_IS_DEBUG_LEVEL(l))
-        jk_log(l, JK_LOG_DEBUG,
-        "closing endpoint with sd = %u %s",
-         ae->sd, ae->reuse? "" : "(socket shutdown)");
     if (IS_VALID_SOCKET(ae->sd)) {
+        if (JK_IS_DEBUG_LEVEL(l))
+            jk_log(l, JK_LOG_DEBUG,
+                   "closing endpoint with sd = %u%s",
+                   ae->sd, ae->reuse ? "" : " (socket shutdown)");
         jk_shutdown_socket(ae->sd, l);
         ae->sd = JK_INVALID_SOCKET;
     }



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


Mime
View raw message