Re: Error in your bandwidth reporting
Roy T. Fielding (fielding@kiwi.ics.uci.edu)
Sun, 07 Mar 1999 01:22:19 -0800
>http://www.pcwp.com/stats/stats.day.5.html showed the following line item....
>
>14.78 70.39 22313932 500 | /data/pcwp2.zip
>
>indicating that each download was reported as the full 470K (approx) and
>that I has used over 22 meg of bandwidth.
>
>This indicates to me that the reporting system is not really keeping track
>of bytes transferred but rather just header requests.
It means that your program is sending the wrong method, and the server has
large TCP buffers capable of accepting 470K written by Apache before your
program closes the connection, thus resulting in Apache writing a log file
entry of 470k, and wwwstat using that entry plus an estimate of the header
size to calculate bandwidth.
Change your program to send a "HEAD" request, instead of "GET".
....Roy