Welcome! Log In Create A New Profile

Advanced

Re: Issue a subrequest from a timer handler

Peter Leonov
May 17, 2010 02:42AM
Hi Maxim,

On 17.05.2010, at 1:18, Maxim Dounin <mdounin@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.

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Issue a subrequest from a timer handler

Peter Leonov 2785 May 16, 2010 02:52PM

Re: Issue a subrequest from a timer handler

Piotr Sikora 1111 May 16, 2010 04:10PM

Re: Issue a subrequest from a timer handler

Peter Leonov 1060 May 16, 2010 05:26PM

Re: Issue a subrequest from a timer handler

Maxim Dounin 1077 May 16, 2010 05:20PM

Re: Issue a subrequest from a timer handler

Peter Leonov 1722 May 17, 2010 02:42AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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