Post Handler Hook

Maxim Dounin mdounin at mdounin.ru
Mon Jun 7 01:21:19 MSD 2010


Hello!

On Sun, Jun 06, 2010 at 07:49:25PM +0530, Shameem Ahamed wrote:

> I am writing a test module for nginx. Basically I want to limit 
> the simultaneous downloads of the files.  I am creating a temp 
> file when a download request comes. I am doing it in the start 
> of handler. 
> 
> I want to remove the temp file, when the request is finished. I 
> couldn't find any post handler hook. Can i remove the temp file 
> at the end of the handler ?
> 
> Any suggestion will be highly appreciated.

You have to add cleanup handler to request pool.  Take a look at 
limit_zone module for an example.

Maxim Dounin



More information about the nginx mailing list