Welcome! Log In Create A New Profile

Advanced

Resuming http request processing

Marcus Clyne
July 17, 2009 07:17PM
Hi,

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?

Thanks,

Marcus.
Subject Author Posted

fastcgi, try_files, problems

Tomasz Pajor July 16, 2009 08:06AM

Re: fastcgi, try_files, problems

Maxim Dounin July 16, 2009 08:41AM

Re: fastcgi, try_files, problems

Tomasz Pajor July 16, 2009 09:07AM

Re: fastcgi, try_files, problems

Maxim Dounin July 16, 2009 01:58PM

Re: fastcgi, try_files, problems

Tomasz Pajor July 17, 2009 05:35AM

Resuming http request processing

Marcus Clyne July 17, 2009 07:17PM

Re: Resuming http request processing

bbm September 05, 2009 08:33AM

Re: fastcgi, try_files, problems

mike July 16, 2009 12:42PM

Re: fastcgi, try_files, problems

Dick Middleton July 16, 2009 08:48AM

Re: fastcgi, try_files, problems

Maxim Dounin July 16, 2009 09:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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