mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 03:42:06 +00:00
enable lingering close for pipelined requests
patch by Maxim Dounin
This commit is contained in:
parent
721f47ed3c
commit
2f3668b59b
1 changed files with 5 additions and 1 deletions
|
|
@ -2143,7 +2143,11 @@ ngx_http_finalize_connection(ngx_http_request_t *r)
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue