Welcome! Log In Create A New Profile

Advanced

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

agentzh
January 15, 2010 05:38AM
On Fri, Jan 15, 2010 at 3:26 AM, Tronman <nginx-forum@nginx.us> wrote:
> Hi there,
>
> I'm trying to figure out how to implement a non blocking delay between when a request comes into a module, and when it is responded too.

Heh, it reminds me of the echo_sleep and echo_blocking_sleep
directives in the ngx_echo module:

http://wiki.nginx.org/NginxHttpEchoModule#echo_sleep

The former is a non-blocking sleep using custom events and timers.
There's a known issue though. I should have registered a request
cleanup handler to remove my own timers when requests abort
abnormally.

Hope it helps.

Cheers,
-agentzh

P.S. I've cc'd the nginx-devel mailing list.

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

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

agentzh 3631 January 15, 2010 05:38AM



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

Online Users

Guests: 131
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready