You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/02/14 15:29:39 UTC

DO NOT REPLY [Bug 33562] New: - Reply_timeout when recovery_options is larger than 1.

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=33562>.
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=33562

           Summary: Reply_timeout when recovery_options is larger than 1.
           Product: Tomcat 5
           Version: 5.0.28
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: satout@intellilink.co.jp


Reply_timeout param told webserver to wait some time for reply to a forwarded 
request before considering the remote tomcat is dead and eventually switch to 
another tomcat in a cluster group.
But in the case of the network trouble processing the application program, the 
unconditional switch to another tomcat generates double registration of data.
To prevent this, when recovery_options is larger than 1, reply_timeout has to 
interrupt to switch to another tomcat and show the error page. 
Therefore, I made the following patches. 

--- jk_ajp_common.c.org        2004-12-24 20:18:10.000000000 +0900
+++ jk_ajp_common.c    2005-02-14 23:25:57.000000000 +0900
@@ -1421,6 +1421,14 @@
                        "Timeout will waiting reply from tomcat. "
                        "Tomcat is down, stopped or network problems.\n");

+                if (headeratclient == JK_FALSE) {
+                    if (p->worker->recovery_opts & 
RECOVER_ABORT_IF_TCGETREQUEST)
+                        op->recoverable = JK_FALSE;
+                } else {
+                    if (p->worker->recovery_opts & 
RECOVER_ABORT_IF_TCSENDHEADER)
+                        op->recoverable = JK_FALSE;
+                }
+
                 JK_TRACE_EXIT(l);
                 return JK_FALSE;
             }

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