On 4/17/07, Alex <finest137@xxxxxxxxx> wrote:
However, I run into records where %b is exactly the file size, while %X is X, and %O is much lower than %b. As I rely upon %b to count file downloads, this seems very disturbing. :( Do I miss something here?
I don't understand your confusion. If the response is aborted, it is natural that the actual number of bytes sent to the client (%O) is smaller than the size of the resource the server attempted to send (%b). In reality, %b is not a reliable measure of anything except exactly what it is defined as: the number of bytes the server is *attempting* to send. If you want to count traffic, you need to use %O.
Apache version 2.0.49 on Centos Linux. Below is a sample line from log.
Quite an old version. There may be any number of bugs also affecting this. 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx