multiple connections to a fastcgi server

Maxim Dounin mdounin at mdounin.ru
Tue May 3 16:16:09 MSD 2011


Hello!

On Tue, May 03, 2011 at 01:01:53PM +0200, mscherer82 at gmail.com wrote:

> I want to build a fast cgi server application which can handle
> multiple simoultanous calls. I found the threaded.c (or threaded.pl)
> example in the fast cgi sdk.
> (http://www.fastcgi.com/devkit/examples/threaded.c)
> 
> But when running with my current configuration, the webserver only
> opens one connection at time and the second requests is waiting until
> the first one is finished. I don't want to use multiplexing. It could
> be done through multiple connections.

nginx will open as many connections to fastcgi backend as it has 
concurrent requests.

If you see only one connection at a time - you may want to check 
fastcgi app and testing tools you are using, probably 
serialization of requests happens there.

Maxim Dounin



More information about the nginx mailing list