Why doesn't Nginx support fastcgi keepalive connection?

Hi, all

It seems that nginx will communicate with fastcgi using short

connection, and with heavy load, nginx and fastcgi will cause large
number
of TIME_WAIT. It’s annoying.

I am wondering why nginx doesn’t support fastcgi keepalive
connection(*
FCGI_KEEP_CONN*)?

Are there some special considerations?

Hello!

On Fri, May 13, 2011 at 10:58:54AM +0800, Liu bbskill wrote:

Hi, all

It seems that nginx will communicate with fastcgi using short

connection, and with heavy load, nginx and fastcgi will cause large number
of TIME_WAIT. It’s annoying.

I am wondering why nginx doesn’t support fastcgi keepalive connection(*
FCGI_KEEP_CONN*)?

Are there some special considerations?

There are some experimental patches available which add fastcgi
keepalive support (with upstream keepalive module).

I’ll post refreshed version in a few weeks.

Maxim D.