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

           Summary: [mod_jk1.2.14] Prepost pings are not sent before the
                    first request
           Product: Tomcat 5
           Version: Unknown
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Prepost pings are not sent before the first request over a new connection.

  Here's a possible patch:

<---- START OF PATCH ---->
---
jakarta-tomcat-connectors-1.2.14.1-src-original/jk/native/common/jk_ajp_common.c
   2005-05-26 15:36:14.000000000 +0100
+++
jakarta-tomcat-connectors-1.2.14.1-src-modified/jk/native/common/jk_ajp_common.c
   2005-08-26 18:25:22.000000000 +0100
@@ -1229,7 +1229,11 @@
         }
         /* 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) &&
+                ((ae->worker->connect_timeout > 0) ||
+                (!(ae->worker->prepost_timeout > 0)) ||
+                (ajp_handle_cping_cpong(ae, ae->worker->prepost_timeout, l)
+                    == JK_TRUE))) {
             /*
              * After we are connected, each error that we are going to
              * have is probably unrecoverable
<---- END OF PATCH ---->

-- 
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