# Why doesn't Nginx support fastcgi keepalive connection?

**URL:** <https://www.ruby-forum.com/t/why-doesnt-nginx-support-fastcgi-keepalive-connection/206912>\
**Category:** NGINX\
**Created:** [May 13, 2011, 4:59am UTC](https://www.ruby-forum.com/t/why-doesnt-nginx-support-fastcgi-keepalive-connection/206912 "2011-05-13T04:59:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 13, 2011, 4:59am UTC](https://www.ruby-forum.com/t/why-doesnt-nginx-support-fastcgi-keepalive-connection/206912/1 "2011-05-13T04:59:08Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Liu\_bbskill](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/76d3ee/32.png) [@Liu\_bbskill](https://www.ruby-forum.com/u/Liu_bbskill)\
**Post date:** [May 13, 2011, 3:10pm UTC](https://www.ruby-forum.com/t/why-doesnt-nginx-support-fastcgi-keepalive-connection/206912/2 "2011-05-13T15:10:05Z")

</div>

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.
