|
|||||||||||
|
DO NOT REPLY [Bug 9497] New: - mod_proxy does not maintain the request_rec->bytes_sent field (old bug #6841)
From: <bugzilla(at)apache.org>
Date: Wed May 29 2002 - 12:42:18 EDT
mod_proxy does not maintain the request_rec->bytes_sent field (old bug #6841)
Summary: mod_proxy does not maintain the request_rec->bytes_sent
field (old bug #6841)
Product: Apache httpd-1.3
Version: HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: Other
Component: mod_proxy
AssignedTo: bugs@httpd.apache.org
ReportedBy: achowe@snert.com
Old Bug #6841 was never addressed. A user reported a bug against mod_throttle claiming that mod_throttle failed to record the number of bytes sent when the request passed through mod_proxy. Apon debugging and examination of the mod_proxy source, I found that ap_proxy_send_fb() tracked and returned the number of bytes received/sent, but that NO ONE made use of the return value to update the request_rec's bytes_sent field. Find enclosed a one line change to src/modules/proxy/proxy_util.c that updates the request_rec. By making the change in ap_proxy_send_fb(), http and ftp response from the remote server or from the cache will all correctly update the request_rec so that other modules can make use of this information in the logging phase. This fix would be especially useful for mod_throttle and mod_watch.
ap_kill_timeout(r);
return total_bytes_rcvd;
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org Received on Wed May 29 16:42:15 2002 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 16:43:38 EDT |
||||||||||
|
|||||||||||