logging variables -- $bytes_sent .. where is $bytes_read ?

jb justinbeech at gmail.com
Sat Apr 18 00:08:25 UTC 2015


thanks and this is a popular answer on stack exchange but no, it does not
work, because aborted requests have read less bytes -- $request_length
reports how many bytes SHOULD have been read, but in the case of any
problem, abort by client, or whatever, this is not how many bytes were
actually read..

For accounting purposes, I'd want an exact mirror to $bytes_sent ...
otherwise math does not add up :( I think there should be a $bytes_recd ..

On Sat, Apr 18, 2015 at 9:47 AM, Valentin V. Bartenev <vbart at nginx.com>
wrote:

> On Saturday 18 April 2015 08:23:37 jb wrote:
> > Is there a variable for bytes read ?
> >
> > $content_length is what should be read, but if the request is terminated
> > early, it is wrong.
> > $request_length is not right either, it is logging 459 bytes on a 9mb
> > upload.
> >
>
> $request_length should work.
>
>   wbr, Valentin V. Bartenev
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150418/31b505e5/attachment.html>


More information about the nginx mailing list