Mercurial > hg > nginx
comparison src/event/ngx_event_udp.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 | 6d4bc025c5a7 |
children | 0f6cc8f73744 7f95010f10b7 |
comparison
equal
deleted
inserted
replaced
7819:3674d5b7174e | 7820:fdc3d40979b0 |
---|---|
361 * or protection by critical section or light mutex | 361 * or protection by critical section or light mutex |
362 */ | 362 */ |
363 | 363 |
364 c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1); | 364 c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1); |
365 | 365 |
366 c->start_time = ngx_current_msec; | |
367 | |
366 #if (NGX_STAT_STUB) | 368 #if (NGX_STAT_STUB) |
367 (void) ngx_atomic_fetch_add(ngx_stat_handled, 1); | 369 (void) ngx_atomic_fetch_add(ngx_stat_handled, 1); |
368 #endif | 370 #endif |
369 | 371 |
370 if (ls->addr_ntop) { | 372 if (ls->addr_ntop) { |