ASF Bugzilla – Attachment 22318 Details for
Bug 45445
Connection Timeout vs. Request Timeout in reverse balanced proxies
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Allow request timeout to be set separate from connection timeout for proxies
patch (text/plain), 1.61 KB, created by
rahul
on 2008-07-25 08:28:02 UTC
(
hide
)
Description:
Allow request timeout to be set separate from connection timeout for proxies
Filename:
MIME Type:
Creator:
rahul
Created:
2008-07-25 08:28:02 UTC
Size:
1.61 KB
patch
obsolete
>Index: proxy_util.c >=================================================================== >--- proxy_util.c (revision 679816) >+++ proxy_util.c (working copy) >@@ -2364,6 +2364,8 @@ > backend_addr = backend_addr->next; > continue; > } >+ if (worker->req_timeout_set) >+ apr_socket_timeout_set(newsock, worker->req_timeout); > > conn->sock = newsock; > connected = 1; >Index: mod_proxy.c >=================================================================== >--- mod_proxy.c (revision 679816) >+++ mod_proxy.c (working copy) >@@ -281,6 +281,16 @@ > return "lbset must be between 0 and 99"; > worker->lbset = ival; > } >+ else if (!strcasecmp(key, "requesttimeout")) { >+ /* Request timeout in seconds. >+ * Defaults to connection timeout >+ */ >+ ival = atoi(val); >+ if (ival < 0) >+ return "Negetive timeouts not allowed for requesttimeout."; >+ worker->req_timeout = apr_time_from_sec(ival); >+ worker->req_timeout_set = 1; >+ } > else { > return "unknown Worker parameter"; > } >Index: mod_proxy.h >=================================================================== >--- mod_proxy.h (revision 679816) >+++ mod_proxy.h (working copy) >@@ -348,6 +348,8 @@ > int flush_wait; /* poll wait time in microseconds if flush_auto */ > apr_interval_time_t ping_timeout; > char ping_timeout_set; >+ apr_interval_time_t req_timeout; >+ char req_timeout_set; > int lbset; /* load balancer cluster set */ > char retry_set; > char disablereuse;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 45445
: 22318