Welcome! Log In Create A New Profile

Advanced

Re: Implementing a non-blocking delay between request and response

January 15, 2010 02:11PM
Almost there!

I found a ngx_http_finalize_request I was forgetting about. That's gone and now:

1. I can connect with one client, have it wait a specified number of seconds, then send the headers and finalize the request.

2. I can connect with another client, while the first is waiting, and it doesn't get blocked. If it's a non-waiting connection it returns like it should.

3. But if I try to connect with another waiting connection, connection 2 returns when the first one returns (instead of after it's time out) and doesn't send any headers.

I'll keep working on and post my results, though again if you have any ideas let me know! Also if someone could explain how ngx_add/del_event work I'd appreciate it. Thanks!
Subject Author Posted

Implementing a non-blocking delay between request and response

Tronman January 14, 2010 02:26PM

Re: Implementing a non-blocking delay between request and response

Marcus Clyne January 14, 2010 08:02PM

Re: Implementing a non-blocking delay between request and response

agentzh January 14, 2010 08:52PM

Re: Implementing a non-blocking delay between request and response

agentzh January 14, 2010 09:38PM

Re: Implementing a non-blocking delay between request and response

Tronman January 15, 2010 09:43AM

Re: Implementing a non-blocking delay between request and response

Tronman January 15, 2010 10:02AM

Re: Implementing a non-blocking delay between request and response

Tronman January 15, 2010 12:28PM

Re: Implementing a non-blocking delay between request and response

Tronman January 15, 2010 01:25PM

Re: Implementing a non-blocking delay between request and response

Tronman January 15, 2010 02:11PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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