Mercurial > hg > nginx-quic
changeset 3981:77604e9a1ed8
enable lingering close for pipelined requests
patch by Maxim Dounin
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 01 Aug 2011 11:08:57 +0000 |
parents | 19de03b4217f |
children | aab3889c41e9 |
files | src/http/ngx_http_request.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -2143,7 +2143,11 @@ ngx_http_finalize_connection(ngx_http_re ngx_http_set_keepalive(r); return; - } else if (r->lingering_close && clcf->lingering_timeout > 0) { + } else if (clcf->lingering_timeout > 0 + && (r->lingering_close + || r->header_in->pos < r->header_in->last + || r->connection->read->ready)) + { ngx_http_set_lingering_close(r); return; }