Author: rjung
Date: Sun Oct  5 08:01:50 2008
New Revision: 701806

URL: http://svn.apache.org/viewvc?rev=701806&view=rev
Log:
Init retry, change semantics, s.t. the first
attempt is counted as retry #1, like we do with
AJP 13 workers.

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=701806&r1=701805&r2=701806&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Sun Oct  5 08:01:50 
2008
@@ -1025,7 +1025,7 @@
     int rc = JK_UNSET;
     char *sessionid = NULL;
     int i;
-    int retry;
+    int retry = 0;
 
     JK_TRACE_ENTER(l);
 
@@ -1086,7 +1086,7 @@
         lb_sub_worker_t *rec;
         if (attempt >= num_of_workers) {
             retry++;
-            if (retry > p->worker->retries) {
+            if (retry >= p->worker->retries) {
                 /* Done with retrying */
                 break;
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to