Hello!

On Tue, Mar 17, 2015 at 02:29:21PM +0700, [email protected] wrote:

> Hello,
> 
> No, it’s not. If you take a look at ngx_http_log_module.c, 
> r->connection->sent is use by function ngx_http_log_bytes_sent, 
> which is later logged as $byte_sents variable, and it’s actually 
> file size. 

No.  The $bytes_sent variable is a number of bytes nginx wrote 
to a socket, not a file size.  Note though, that as long socket 
buffers are big enough the whole response will fit into the send 
buffer, and you won't see the difference.

-- 
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to