Multiple connections to a fastcgi server

Hello,

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.

default:

server {

location ~ .c$ {
include /etc/nginx/fastcgi_params; #or whatever you named it
# fastcgi_pass unix:/tmp/c.socket;
fastcgi_pass 127.0.0.1:9000;
}
}

Is it possible to change this behaviour?

Thanks
Marc

Hello!

On Tue, May 03, 2011 at 01:01:53PM +0200, [email protected] 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 D.