DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36385>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36385





------- Additional Comments From [EMAIL PROTECTED]  2005-09-02 12:05 -------
Index: jk_ajp_common.c
===================================================================
RCS file: 
/home/cvs//jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c,v
retrieving revision 1.119
diff -u -r1.119 jk_ajp_common.c
--- jk_ajp_common.c     26 May 2005 14:36:14 -0000      1.119
+++ jk_ajp_common.c     2 Sep 2005 10:04:17 -0000
@@ -1227,9 +1227,20 @@
             JK_TRACE_EXIT(l);
             return JK_FALSE;
         }
-        /* no need to handle cping/cpong here since it should be at connection
time */
+        
+        if ((ajp_connect_to_endpoint(ae, l) == JK_TRUE)) {
 
-        if (ajp_connect_to_endpoint(ae, l) == JK_TRUE) {
+           /* no need to handle cping/cpong if allready sent at connection 
time */
+
+           if ((ae->worker->connect_timeout <= 0) &&
(ae->worker->prepost_timeout > 0)) {
+             if (ajp_handle_cping_cpong(ae, ae->worker->prepost_timeout, l) !=
JK_TRUE) {
+                jk_log(l, JK_LOG_INFO,
+                       "Error sending ping pong on a fresh connection");
+                JK_TRACE_EXIT(l);
+                return JK_FALSE;
+             }
+           }
+           
             /*
              * After we are connected, each error that we are going to
              * have is probably unrecoverable

Here is my latest prefered patch.

BTW, I couldn't commit it (damnt eclipse)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to