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

* Add the possibility to set a separate connection timeout for backend

workers.

PR: 45445
Submitted by: rahul <rahul sun.com>
Reviewed by: rpluem


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@684341 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ruediger Pluem
2008-08-09 20:52:46 +00:00
parent 91d5801b05
commit b4e20c8e55
6 changed files with 42 additions and 3 deletions

View File

@@ -281,6 +281,16 @@ static const char *set_worker_param(apr_pool_t *p,
return "lbset must be between 0 and 99";
worker->lbset = ival;
}
else if (!strcasecmp(key, "connectiontimeout")) {
/* Request timeout in seconds.
* Defaults to connection timeout
*/
ival = atoi(val);
if (ival < 1)
return "Connectiontimeout must be at least one second.";
worker->conn_timeout = apr_time_from_sec(ival);
worker->conn_timeout_set = 1;
}
else {
return "unknown Worker parameter";
}