Hi there!
I'm writing an application that is using fastcgi coupled with nginx. I have currently set it to use keepalive sockets.
The application is designed so that any requests that come through are pushed onto an asynchronous queue and processed by multiple threads. However, I am not seeing behavior from nginx that is compatible with this - it appears as though it sends a request and does not send further requests until the first request is responded to or times out.
What I've also noticed is that if it times out, nginx appears to be killing the socket and creating a new one, which is also not particularly desirable behavior.
Is there something I'm doing wrong here? I know that nginx does not support multiplexing, but is there a way to get it so my application can be processing multiple requests from nginx concurrently? Insofar, I have been unable to get more than one request at a time from nginx.
Thank you!
I'm writing an application that is using fastcgi coupled with nginx. I have currently set it to use keepalive sockets.
The application is designed so that any requests that come through are pushed onto an asynchronous queue and processed by multiple threads. However, I am not seeing behavior from nginx that is compatible with this - it appears as though it sends a request and does not send further requests until the first request is responded to or times out.
What I've also noticed is that if it times out, nginx appears to be killing the socket and creating a new one, which is also not particularly desirable behavior.
Is there something I'm doing wrong here? I know that nginx does not support multiplexing, but is there a way to get it so my application can be processing multiple requests from nginx concurrently? Insofar, I have been unable to get more than one request at a time from nginx.
Thank you!