Mercurial > hg > nginx
comparison src/http/ngx_http_request.h @ 9307:3c71158f5a34 default tip
Keepalive connections now respect lingering_timeout on shutdown.
During graceful shutdown keepalive connections are now closed only after
at least lingering_timeout of inactivity. To do so, c->idle is only
set on keepalive connections after lingering_timeout expires.
This ensures that the connection close race will less likely result in
connections being reset when a client sends a request at the same time
when the connection is closed by ngx_close_idle_connections() during
graceful shutdown.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 31 Jul 2024 17:50:58 +0300 |
parents | e46e1ea89ccd |
children |
comparison
equal
deleted
inserted
replaced
9306:e46e1ea89ccd | 9307:3c71158f5a34 |
---|---|
329 | 329 |
330 ngx_chain_t *busy; | 330 ngx_chain_t *busy; |
331 ngx_int_t nbusy; | 331 ngx_int_t nbusy; |
332 | 332 |
333 ngx_chain_t *free; | 333 ngx_chain_t *free; |
334 | |
335 ngx_msec_t keepalive_timeout; | |
334 | 336 |
335 unsigned ssl:1; | 337 unsigned ssl:1; |
336 unsigned proxy_protocol:1; | 338 unsigned proxy_protocol:1; |
337 } ngx_http_connection_t; | 339 } ngx_http_connection_t; |
338 | 340 |