Nginx module "data sent" handler

Yichun Zhang (agentzh) agentzh at gmail.com
Tue Feb 3 22:21:11 UTC 2015


Hello!

On Tue, Feb 3, 2015 at 2:18 PM, Yichun Zhang (agentzh) wrote:
> One good approximation for this is to register your own *pool cleanup*
> handler in r->pool. The request pool will not be destroyed when
> there's still pending data (don't get confused it with the request
> cleanup thing created by ngx_http_cleanup_add, which gets called too
> early for this).
>

Oh, sorry to mention that your log-phase handler can also be a good
place for this. Maybe even better if you're trying to log something
upon the "data sent" event :)

Regards,
-agentzh



More information about the nginx-devel mailing list