Issue a subrequest from a timer handler
Peter Leonov
gojpeg at gmail.com
Mon May 17 10:40:53 MSD 2010
Hi Maxim,
On 17.05.2010, at 1:18, Maxim Dounin <mdounin at mdounin.ru> wrote:
> Hello!
>
> On Sun, May 16, 2010 at 10:51:32PM +0400, Peter Leonov wrote:
>
>> Hi devels,
>>
>> If a subrequest is issued from timer nginx doesn't know about it
>> until the request is somehow accessed from the network. Otherwise
>> the subrequest stays stuck forever.
>>
>> How may a module signal nginx about a new subrequest to process?
>
> Calling ngx_http_run_posted_requests() should be a way to go.
Yes, you are right. Great thank you Maxim!
The only thing I'v done is calling ngx_http_run_posted_requests() just
at the end of the timer handler body.
P.S. It's alive! Mua-ha-ha :)
Best regards,
Peter.
More information about the nginx-devel
mailing list