Couple questions about module behaviour

hungnv at opensource.com.vn hungnv at opensource.com.vn
Tue Mar 17 07:29:21 UTC 2015


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. 


--
Hưng
Email: hungnv at opensource.com.vn



> On Mar 17, 2015, at 1:57 PM, Anatoli Marinov <a.marinov at ucdn.com> wrote:
> 
> r->connection->sent ?
> 
> 
> On Tue, Mar 17, 2015 at 8:56 AM, hungnv at opensource.com.vn <mailto:hungnv at opensource.com.vn> <hungnv at opensource.com.vn <mailto:hungnv at opensource.com.vn>> wrote:
> Hello,
> > No, it means that a server don't know how many bytes a client
> > actually recieved.
> 
> So can we know how many bytes server actually sent (write to the socket)?
> 
> Thanks.
> 
>> 
> Hưng
> Email: hungnv at opensource.com.vn <mailto:hungnv at opensource.com.vn>
> 
> 
> 
> > On Feb 13, 2015, at 8:15 PM, Maxim Dounin <mdounin at mdounin.ru <mailto:mdounin at mdounin.ru>> wrote:
> >
> > Hello!
> >
> > On Fri, Feb 13, 2015 at 09:49:08AM +0700, hungnv at opensource.com.vn <mailto:hungnv at opensource.com.vn> wrote:
> >
> >> Well, this means there’s another parameter in log module which
> >> actually log number of bytes client received (other than
> >> $body_bytes_sent or $bytes_sent). ?
> >
> > No, it means that a server don't know how many bytes a client
> > actually recieved.
> >
> > --
> > Maxim Dounin
> > http://nginx.org/ <http://nginx.org/>
> >
> > _______________________________________________
> > nginx-devel mailing list
> > nginx-devel at nginx.org <mailto:nginx-devel at nginx.org>
> > http://mailman.nginx.org/mailman/listinfo/nginx-devel <http://mailman.nginx.org/mailman/listinfo/nginx-devel>
> 
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org <mailto:nginx-devel at nginx.org>
> http://mailman.nginx.org/mailman/listinfo/nginx-devel <http://mailman.nginx.org/mailman/listinfo/nginx-devel>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150317/53f24e7c/attachment.html>


More information about the nginx-devel mailing list