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 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Additional Comments From [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]