mturk       2005/02/21 23:26:55

  Modified:    jk/native/common jk_lb_worker.c
  Log:
  Fix infinite loop when all workers are in error state and sticky_session_force
  is defined. If we found a worker by session id, and its in error state, return
  no worker if sticky_session_force is defined (forbiden failover)
  
  Revision  Changes    Path
  1.67      +4 -2      jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
  
  Index: jk_lb_worker.c
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- jk_lb_worker.c    21 Feb 2005 17:10:00 -0000      1.66
  +++ jk_lb_worker.c    22 Feb 2005 07:26:55 -0000      1.67
  @@ -372,7 +372,9 @@
                * balancer. Of course you will need a some kind of
                * session replication between those two remote.
                */
  -            if (*candidate->s->redirect)
  +            if (p->s->sticky_session_force)
  +                candidate = NULL;
  +            else if (*candidate->s->redirect)
                   candidate = find_by_session(p, candidate->s->redirect, l);
               else if (*candidate->s->domain && !uses_domain) {
                   uses_domain = 1;
  
  
  

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

Reply via email to