1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Enable retry=0 for the worker.

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
This commit is contained in:
Mladen Turk
2006-09-30 10:41:51 +00:00
parent f80b020c74
commit 6a68c112dc
3 changed files with 5 additions and 3 deletions

View File

@@ -85,9 +85,10 @@ static const char *set_worker_param(apr_pool_t *p,
* 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