httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Meaning and interpretation of 206 code sizes in Apache logs
Date Mon, 12 Feb 2007 18:58:51 GMT
On 2/12/07, Chris 'Xenon' Hanson <xenon@3dnature.com> wrote:

>    1. Is HE.net making a mistake in using access_log to count bandwidth?

If they are doing it naively using the default log format, then yes
they are making a mistake.

>    2. What exactly does the number after the 206 code in the access_log mean? Is it simply
> the range the client _requested_ via the Range header? In which case, it has no real
> relationship to how much data was _actually_ transferred?

Yes, it is the size of the object the client requested.  A more
accurate number for billing can be generated by apache if you ask for
it:
http://httpd.apache.org/docs/2.2/mod/mod_logio.html

Note that the download accelerators you are seeing are often more
malicious than you seem to believe.  In order to speed up downloads,
they often make multiple simultaneous requests over multiple
connections, with overlapping ranges.  (They often simply request
everything from byte "x" to the end of the file, where "x" varies
according to the connection.)  They then simply drop the connections
when they have what they want.  So even on a perfect network
connection, you will see total "amount requested" far exceeding the
size of the file.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message