mirror of
https://github.com/nginx/nginx.git
synced 2025-06-08 02:02:38 +08:00
enable lingering close for pipelined requests
patch by Maxim Dounin
This commit is contained in:
parent
721f47ed3c
commit
2f3668b59b
@ -2143,7 +2143,11 @@ ngx_http_finalize_connection(ngx_http_request_t *r)
|
|||||||
ngx_http_set_keepalive(r);
|
ngx_http_set_keepalive(r);
|
||||||
return;
|
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);
|
ngx_http_set_lingering_close(r);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user