Welcome! Log In Create A New Profile

Advanced

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

jb
April 17, 2015 08:10PM
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@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

jb April 17, 2015 06:24PM

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

Valentin V. Bartenev April 17, 2015 07:48PM

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

jb April 17, 2015 08:10PM

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

jb April 17, 2015 08:26PM

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

Valentin V. Bartenev April 17, 2015 09:12PM

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

jb April 17, 2015 09:26PM

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

jb April 17, 2015 09:46PM

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

Valentin V. Bartenev April 17, 2015 10:08PM

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

jb April 17, 2015 10:18PM

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

Valentin V. Bartenev April 17, 2015 08:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 129
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready