httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
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 <> wrote:

>    1. Is 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

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.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message