Fwd: Nginx module "data sent" handler

Tigran Bayburtsyan tigran.bayburtsyan at gmail.com
Tue Feb 3 09:26:33 UTC 2015


Hi.
I'm developing Nginx module where I need to handle some function when all
data have been sent to client or when client closed the connection.
For example I have
ngx_http_finalize_request(r, ngx_http_output_filter ( r , out_chain ));

Where out_chain contains over 700KB of data.
I can't find where to add function to handle event that all 700kb have been
sent to client, or client closed the connection.

As I understand all that 700kb data Nginx not sending at once it will take
some Nginx loops to be sent.

So is there any function or event to handle "data sent" event ?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150203/f1492172/attachment-0001.html>


More information about the nginx-devel mailing list