From: Martin Kraemer Date: Wed, 29 May 2002 20:39:16 +0000 (+0000) Subject: Fix a problem in mod_proxy: it would not set the number of bytes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19e2709a5b2621e3537368ac7b8da515602b94c9;p=thirdparty%2Fapache%2Fhttpd.git Fix a problem in mod_proxy: it would not set the number of bytes transferred, so other modules could not access the value from the request_rec->bytes_sent field. (And indeed, I also observed some time ago that the bytes_sent field was not set.) PR: 6841 Submitted by: Anthony Howe Reviewed by: Martin Kraemer git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95362 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/CHANGES b/src/CHANGES index 07628536360..633b4af8c41 100644 --- a/src/CHANGES +++ b/src/CHANGES @@ -1,5 +1,10 @@ Changes with Apache 1.3.25 + *) Fix a problem in mod_proxy: it would not set the number of bytes + transferred, so other modules could not access the value from + the request_rec->bytes_sent field. + [Anthony Howe ] PR#6841 + *) Fix a problem in mod_rewrite which would lead to 400 Bad Request responses for rewriting rules which resulted in a local path. [Martin Kraemer] diff --git a/src/modules/proxy/proxy_util.c b/src/modules/proxy/proxy_util.c index e4b30ee7e75..9bfb15bb236 100644 --- a/src/modules/proxy/proxy_util.c +++ b/src/modules/proxy/proxy_util.c @@ -693,6 +693,9 @@ long int ap_proxy_send_fb(BUFF *f, request_rec *r, cache_req *c, off_t len, int } ap_kill_timeout(r); + + r->bytes_sent += total_bytes_rcvd; + return total_bytes_rcvd; }