Welcome! Log In Create A New Profile

Advanced

Dedicatng a worker to a single URL ?

MAGNIEN, Thierry
September 26, 2012 06:08AM
Hi,

I'm writing an nginx module that needs to perform a quite long task when receving a POST request on a defined URL. However, at the moment, the worker that took the request is blocked until the task finishes, blocking possibly several dozens of GET requests.

I would like to avoid this, so is there a way to dedicate a worker for this URL only ? In such a case, GET requests would be treated by other workers, therefore not blocked when the POST request comes in.

Or could I "spawn" a separate thread for the task and release the worker asap ?

Thanks,
Thierry

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

Dedicatng a worker to a single URL ?

MAGNIEN, Thierry 786 September 26, 2012 06:08AM

Re: Dedicatng a worker to a single URL ? Attachments

Tom van der Woerdt 390 September 26, 2012 06:20AM

RE: Dedicatng a worker to a single URL ?

MAGNIEN, Thierry 441 September 26, 2012 06:28AM



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

Online Users

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