This allows to have an option to always retry
the workers in error state instead using a
specified time.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451575
13f79535-47bb-0310-9956-
ffa450edef68
* in error state, it will be retried after that timeout.
*/
ival = atoi(val);
- if (ival < 1)
- return "Retry must be at least one second";
+ if (ival < 0)
+ return "Retry must be a positive value";
worker->retry = apr_time_from_sec(ival);
+ worker->retry_set = 1;
}
else if (!strcasecmp(key, "ttl")) {
/* Time in seconds that will destroy all the connections
struct proxy_worker {
int id; /* scoreboard id */
apr_interval_time_t retry; /* retry interval */
+ char retry_set;
int lbfactor; /* initial load balancing factor */
const char *name;
const char *scheme; /* scheme to use ajp|http|https */
}
/* Set default parameters */
- if (!worker->retry) {
+ if (!worker->retry_set) {
worker->retry = apr_time_from_sec(PROXY_WORKER_DEFAULT_RETRY);
}
/* By default address is reusable */