Mercurial > hg > ngx_http_upstream_keepalive
diff ngx_http_upstream_keepalive_module.c @ 14:28af4b0b32c1
Keepalive: experimental fastcgi support.
Works only with patched nginx and must be explicitly activated by define
(./configure --with-cc-opt="-D NGX_UPSTREAM_KEEPALIVE_PATCHED").
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 15 Apr 2009 19:22:11 +0400 |
parents | 15530a464dba |
children | 2054159546d0 |
line wrap: on
line diff
--- a/ngx_http_upstream_keepalive_module.c +++ b/ngx_http_upstream_keepalive_module.c @@ -313,8 +313,12 @@ ngx_http_upstream_free_keepalive_peer(ng if (!kp->failed && pc->connection != NULL +#if (NGX_UPSTREAM_KEEPALIVE_PATCHED) + && u->keepalive) +#else && (status == NGX_HTTP_NOT_FOUND || (status == NGX_HTTP_OK && u->header_sent && u->length == 0))) +#endif { c = pc->connection;