Be aware of disconnection

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 ?

Thanks and regards
Yves

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,249728,249728#msg-249728

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 D.
http://nginx.org/

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

Thanks !
It’s easy to implement.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,249728,249734#msg-249734

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs