Resuming http request processing

Marcus Clyne maccaday at
Sat Jul 18 03:17:43 MSD 2009


I'm trying to write a module handler that does this:

handler is called
handler opens ngx connection (for later event notification) (i.e. using 
pipe() and ngx_get_connection())
handler sends info to another thread (to perform file-system tasks)
handler returns NGX_DONE

other thread processes the sent information
other thread sends event notification to Nginx event loop using the 
opened pipe

event callback function is executed by Nginx event loop
processing of request continues as though NGX_DECLINED was returned by 
handler in the first instance

I'm ok on all these steps, until the last one.  How can processing of a 
request be resumed at a later time? 



More information about the nginx mailing list