Mercurial > hg > nginx
comparison src/event/ngx_event_accept.c @ 7820:fdc3d40979b0
Introduced the "keepalive_time" directive.
Similar to lingering_time, it limits total connection lifetime before
keepalive is switched off. The default is 1 hour, which is close to
the total maximum connection lifetime possible with default
keepalive_requests and keepalive_timeout.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 08 Apr 2021 00:15:48 +0300 |
parents | 88a624c9b491 |
children | e2d07e4ec636 |
comparison
equal
deleted
inserted
replaced
7819:3674d5b7174e | 7820:fdc3d40979b0 |
---|---|
254 * or protection by critical section or light mutex | 254 * or protection by critical section or light mutex |
255 */ | 255 */ |
256 | 256 |
257 c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1); | 257 c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1); |
258 | 258 |
259 c->start_time = ngx_current_msec; | |
260 | |
259 #if (NGX_STAT_STUB) | 261 #if (NGX_STAT_STUB) |
260 (void) ngx_atomic_fetch_add(ngx_stat_handled, 1); | 262 (void) ngx_atomic_fetch_add(ngx_stat_handled, 1); |
261 #endif | 263 #endif |
262 | 264 |
263 if (ls->addr_ntop) { | 265 if (ls->addr_ntop) { |