tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36385] - [mod_jk1.2.14] Prepost pings are not sent before the first request
Date Fri, 02 Sep 2005 09:33:12 GMT
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


ealves@mobicomp.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




------- Additional Comments From ealves@mobicomp.com  2005-09-02 11:33 -------
(In reply to comment #1)
> cping/cpong are handled in ajp_connect_to_endpoint

  ajp_connect_to_endpoint sends a ping to validate the connection if
connect_timeout has been set.
  However, if you haven't set connect_timeout and you've set prepost_timeout
(asking for a ping to be sent before every request), no ping will be sent before
the first request.

  Here's an alternative patch (against mod_jk 1.2.14) that I hope better
illustrates what I'm trying to say:

<---- START OF PATCH ---->
--- jk_ajp_common.c	2005-09-02 10:22:18.446771900 +0100
+++ jk_ajp_common.c_modified	2005-09-02 10:25:36.164484700 +0100
@@ -881,6 +881,11 @@
                         ae->worker->connect_timeout, l);
             JK_TRACE_EXIT(l);
             return rc;
+        } else if (ae->worker->prepost_timeout > 0) {
+            rc = ajp_handle_cping_cpong (ae,
+                        ae->worker->prepost_timeout, l);
+            JK_TRACE_EXIT(l);
+            return rc;
         }
         JK_TRACE_EXIT(l);
         return JK_TRUE;
<---- END OF PATCH ---->

  I understand that I can get the same behaviour by setting connect_timeout to
the same value as prepost_timeout, but setting prepost_timeout should be enough
to have a ping sent before every request.

-- 
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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message