RE: How to avoid blocking Nginx with long request

2013-04-10 Thread MAGNIEN, Thierry
h in that direction. Thanks to both, Thierry -Message d'origine- De : nginx-devel-boun...@nginx.org [mailto:nginx-devel-boun...@nginx.org] De la part de Jeff Kaufman Envoyé : mercredi 10 avril 2013 15:57 À : nginx-devel@nginx.org Objet : Re: How to avoid blocking Nginx with long re

Re: How to avoid blocking Nginx with long request

2013-04-10 Thread Jeff Kaufman
Why is your module taking a long time? Is it doing heavy computation or is it blocked on IO? If it's blocking IO, can you rewrite it to use asynchronous IO and never block? Another option would be to put your code in a separate process and reverse proxy to it. Or you could be crazy and do what

Re: How to avoid blocking Nginx with long request

2013-04-10 Thread Maxim Dounin
Hello! On Wed, Apr 10, 2013 at 01:26:15PM +, MAGNIEN, Thierry wrote: > Hi, > > I'm writing an Nginx module that uses information stored in > memory to redirect requests to other servers. Basically when a > GET requests arrives, it makes some checks and decides to which > Location the requ