DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30730>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30730 ------- Additional Comments From [EMAIL PROTECTED] 2007-03-13 18:02 ------- Created an attachment (id=19706) --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19706&action=view) Patch ap_increment_counts updates the scoreboard structure (worker_score) and is called by http processing functions e.g ap_process_http_connection. If a request is internally redirected then apache creates a new request_rec and process the request by calling ap_process_request_internal. Before this fix, apache miss the bytes sent by a internal redirect. In this fix, we invoke a new function ap_increment_bytes which only increment the sent bytes. It would be incorrect to call ap_increment_counts from internal redirect function because it increments the access counts too which will result in more than 1 access count for a single request. A small refactoring was needed in scoreboard.c to make a single point of incrementing bytes. List of affected files : server/scoreboard.c include/scoreboard.h modules/http/http_request.c How did I test the patch : 1. Internal redirect by Action image/jpeg /watermark.php as reported by bug. 2. Internal redirect by php script as mentioned before. server-status is monitored to make sure that for each access, Total Traffic is reported correctly. Also "Conn and Child" was also observed for these requests. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
