Welcome! Log In Create A New Profile

Advanced

Re: couple questions regarding log phase handlers

Yichun Zhang (agentzh)
July 07, 2014 06:50PM
Hello!

On Mon, Jul 7, 2014 at 1:49 PM, bsfranks wrote:
> Also, is the log phase resumable? It looks like all the log phase handlers
> are looped through in
> ngx_http_log_request() called from ngx_http_free_request(). However, return
> codes are not checked. Was hoping for a way to return NGX_AGAIN from within
> the log phase so that it could be resumable rather than blocking. Possible?

In the context of ngx_lua, we use nginx timers as a work around. For
instance, the lua-resty-logger-socket library uses this work-around
and we've been using it to *reliably* collect nginx logs over sockets
in production:

https://github.com/cloudflare/lua-resty-logger-socket#readme

EAGAIN and etc are properly handled there.

Regards,
-agentzh

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

couple questions regarding log phase handlers

Anonymous User 567 July 07, 2014 04:50PM

Re: couple questions regarding log phase handlers

Maxim Dounin 275 July 07, 2014 06:30PM

Re: couple questions regarding log phase handlers

Yichun Zhang (agentzh) 397 July 07, 2014 06:50PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 244
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