From: Graham Leggett Date: Sun, 7 Apr 2002 19:12:27 +0000 (+0000) Subject: Correct a timeout problem within proxy which would force long X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d820bad1fa12a9031ccc68f1e719d16a8873800c;p=thirdparty%2Fapache%2Fhttpd.git Correct a timeout problem within proxy which would force long or slow POST requests to close after 300 seconds. PR: 7572 Obtained from: Submitted by: Martin Lichtin , Brian Bothwell Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@94524 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/CHANGES b/src/CHANGES index 6d84c316e8a..cd7814164b9 100644 --- a/src/CHANGES +++ b/src/CHANGES @@ -1,5 +1,10 @@ Changes with Apache 1.3.25 + *) Correct a timeout problem within proxy which would force long + or slow POST requests to close after 300 seconds. + [Martin Lichtin , Brian Bothwell + ] + *) Add support for dechunking chunked responses in proxy. [Graham Leggett] diff --git a/src/modules/proxy/proxy_http.c b/src/modules/proxy/proxy_http.c index d6d46a2e61d..05c8ef685d8 100644 --- a/src/modules/proxy/proxy_http.c +++ b/src/modules/proxy/proxy_http.c @@ -387,8 +387,10 @@ int ap_proxy_http_handler(request_rec *r, cache_req *c, char *url, /* send the request data, if any. */ if (ap_should_client_block(r)) { - while ((i = ap_get_client_block(r, buffer, sizeof buffer)) > 0) + while ((i = ap_get_client_block(r, buffer, sizeof buffer)) > 0) { + ap_reset_timeout(r); ap_bwrite(f, buffer, i); + } } ap_bflush(f); ap_kill_timeout(r);