From: William A. Rowe Jr Date: Mon, 8 Aug 2005 03:12:24 +0000 (+0000) Subject: We already accept 80 bytes less than the client body's anticipated X-Git-Tag: 2.1.7~5^2~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a29f5c921559beef85548205f3aba555b766aa70;p=apache We already accept 80 bytes less than the client body's anticipated size, so we don't need to also prefetch an extra 1024 bytes; this was redundant. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@230739 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index 8d9822dd24..82013ef4e0 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -821,7 +821,7 @@ apr_status_t ap_proxy_http_request(apr_pool_t *p, request_rec *r, do { status = ap_get_brigade(r->input_filters, temp_brigade, AP_MODE_READBYTES, APR_BLOCK_READ, - MAX_MEM_SPOOL + 1024 - bytes_read); + MAX_MEM_SPOOL - bytes_read); if (status != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_ERR, status, r->server, "proxy: prefetch request body failed to %pI (%s)"