Bug 25656 - server-status reports wrong value of "Total Traffic"
Summary: server-status reports wrong value of "Total Traffic"
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_status (show other bugs)
Version: 2.0.55
Hardware: PC All
: P3 minor (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: FixedInTrunk
: 22870 30724 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-19 15:59 UTC by YuriF
Modified: 2012-02-26 16:29 UTC (History)
4 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description YuriF 2003-12-19 15:59:51 UTC
Situation is the following:
After downloading of one file was canceled (say, 50% of file was 
transmitted), "Total Traffic" shows whole file size, as if all file was 
successfully completed.

I've tested this by downloading one file from Apache 2.0.48, which was working 
only for my ip.
<IfModule mod_status.c>
	ExtendedStatus On
	<Location /server-status>
		SetHandler server-status

		Order Deny,Allow
		Deny from all
		Allow from <my ip>
	</Location>
</IfModule>
After a while i was canceling download and was referring to the  "Total 
Traffic" in server-status.
Each time i cancel download value of "Total Traffic" was increased by whole 
file size.
But with Apache 1.3.29 on Linux OS all works fine, and "Total Traffic" 
calculates right transmitted amount

So, now according to my server-status it was 250Gb transmitted in 3 hours
Comment 1 Paul Querna 2004-11-04 03:55:43 UTC
*** Bug 30724 has been marked as a duplicate of this bug. ***
Comment 2 Eli K. Breen 2006-03-28 19:30:29 UTC
This problem also applies to HEAD requests, which can _really_ make a mess of
status reporting.

HEADing a 100MB file cause all the stats in server-status to show an additional
100MB of traffic, however there were 0bytes transferred, give or take. 

I've expanded the bug to include all OSs as my incident was verified on the
following:

apache-2.0.55_2     Version 2 of Apache web server with prefork MPM.

FreeBSD XXXXX.XXXX.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Tue Aug 16 13:02:01
PDT 2005 root@XXXXX.XXXXXX.com:/usr/obj/usr/src/sys/LONGSHOT_II  i386
Comment 3 Philp M. Gollucci 2009-01-18 16:19:15 UTC
CC myself on FreeBSD related bugs
Comment 4 Stefan Fritsch 2009-10-08 14:47:01 UTC
Fixed in r823337
Comment 5 Peter Poeml 2009-10-08 15:28:41 UTC
Thanks, Stefan!
Comment 6 Stefan Fritsch 2011-06-13 20:33:44 UTC
*** Bug 22870 has been marked as a duplicate of this bug. ***
Comment 7 Stefan Fritsch 2012-02-26 16:29:55 UTC
fixed in 2.4.1