Can not use $bytes_sent in module (complex values)

Maxim Dounin mdounin at mdounin.ru
Wed Oct 3 15:29:21 UTC 2012


Hello!

On Thu, Sep 27, 2012 at 05:30:10PM +0200, Benjamin Grössing wrote:

[...]

> I have also had a look at the changeset 4686, adding the $status
> variable. Thats exactly what I had in mind! Since $body_bytes_sent
> already exists (it actually just subtracts the header length from the
> total length!), adding $bytes_sent is actually quite easy (or did I
> miss something?).
> 
> I have attached a patch (based on nginx 1.3.6) that adds $bytes_sent
> to ngx_http_variables. It works great for me - I'd be happy to see it
> in a future nginx release.

Patch committed, thanks.

[...]

-- 
Maxim Dounin
http://nginx.com/support.html



More information about the nginx-devel mailing list