logging variables -- $bytes_sent .. where is $bytes_read ?
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
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>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx