Author: mturk
Date: Wed Jul 19 02:49:02 2006
New Revision: 423418
URL: http://svn.apache.org/viewvc?rev=423418&view=rev
Log:
Allow to have the recover timeout less then default
60 second. If someone needs the lower latency, then
he can set worker.name.recover_time=xxx where the
xxx is value in seconds larger then zero.
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=423418&r1=423417&r2=423418&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Wed Jul 19 02:49:02
2006
@@ -1005,8 +1005,8 @@
p->s->retries = pThis->retries;
p->s->recover_wait_time = jk_get_worker_recover_timeout(props, p->s->name,
WAIT_BEFORE_RECOVER);
- if (p->s->recover_wait_time < WAIT_BEFORE_RECOVER)
- p->s->recover_wait_time = WAIT_BEFORE_RECOVER;
+ if (p->s->recover_wait_time < 1)
+ p->s->recover_wait_time = 1;
p->maintain_time = jk_get_worker_maintain_time(props);
p->s->last_maintain_time = time(NULL);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]