Be aware of disconnection

Maxim Dounin mdounin at
Tue Apr 29 11:50:04 UTC 2014


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:

Maxim Dounin

More information about the nginx mailing list