Maxim Dounin
April 29, 2014 07:52AM
Hello!

On Tue, Apr 29, 2014 at 07:31:38AM -0400, crespin wrote:

> Hello,
> I'm write a module storing requests in an memory array. An internal thread
> send request in a cluster.
> I need to be aware of deconnection for specific post-treatment. I'm unable
> to find any API. How to setup a handle on disconnection ?

Install a cleanup handler on a connection or request pool. Take
a look at limit_conn module to see an example:

http://hg.nginx.org/nginx/file/3a48775f1535/src/http/modules/ngx_http_limit_conn_module.c#l258

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

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

Be aware of disconnection

crespin April 29, 2014 07:31AM

Re: Be aware of disconnection

Maxim Dounin April 29, 2014 07:52AM

Re: Be aware of disconnection

crespin April 29, 2014 09:13AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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