Mercurial > hg > nginx
diff src/http/modules/ngx_http_upstream_keepalive_module.c @ 6332:78b4e10b4367
Upstream: don't keep connections on early responses (ticket #669).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 17 Dec 2015 16:39:15 +0300 |
parents | 5e6142609e48 |
children | adf25b8d0431 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_upstream_keepalive_module.c Thu Dec 17 16:39:02 2015 +0300 +++ b/src/http/modules/ngx_http_upstream_keepalive_module.c Thu Dec 17 16:39:15 2015 +0300 @@ -302,6 +302,10 @@ goto invalid; } + if (!u->request_body_sent) { + goto invalid; + } + if (ngx_terminate || ngx_exiting) { goto invalid; }