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 27884] - mod_jk2 making multiple requests when client cancels the load of the page
Date Wed, 24 Mar 2004 14:19:20 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=27884>.
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=27884

mod_jk2 making multiple requests when client cancels the load of the page





------- Additional Comments From Biju_Kunjummen@hotmail.com  2004-03-24 14:19 -------
I am using the release version 2.0.2 right now. Is there a binary version of 
2.04 that I can download from someplace. I can test out if this fixes this 
issue. From what I have seen of the 2.0.2 code, I felt that the following line 
has an issue:

jk_worker_ajp13.c:

#define JK_RETRIES 2


static int JK_METHOD
jk2_worker_ajp13_forwardStream(jk_env_t *env, jk_worker_t *worker,
                              jk_ws_service_t *s,
                              jk_endpoint_t   *e )
{
    int err=JK_OK;
    int attempt;
    int has_post_body=JK_FALSE;
    jk_channel_t *channel= worker->channel;

    e->recoverable = JK_TRUE;
    s->is_recoverable_error = JK_TRUE;

    /*
     * Try to send the request on a valid endpoint. If one endpoint
     * fails, close the channel and try again ( maybe tomcat was restarted )
     *
     * XXX JK_RETRIES could be replaced by the number of workers in
     * a load-balancing configuration
     */
    for(attempt = 0 ; attempt < JK_RETRIES ;attempt++) {

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