<div dir="ltr">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..<div><br></div><div>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 ..</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 18, 2015 at 9:47 AM, Valentin V. Bartenev <span dir="ltr"><<a href="mailto:vbart@nginx.com" target="_blank">vbart@nginx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Saturday 18 April 2015 08:23:37 jb wrote:<br>
> Is there a variable for bytes read ?<br>
><br>
> $content_length is what should be read, but if the request is terminated<br>
> early, it is wrong.<br>
> $request_length is not right either, it is logging 459 bytes on a 9mb<br>
> upload.<br>
><br>
<br>
</div></div>$request_length should work.<br>
<br>
wbr, Valentin V. Bartenev<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>