comparison src/event/ngx_event_acceptex.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 bcd442b585f0
children
comparison
equal deleted inserted replaced
7819:3674d5b7174e 7820:fdc3d40979b0
78 78
79 ngx_event_post_acceptex(ls, 1); 79 ngx_event_post_acceptex(ls, 1);
80 80
81 c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1); 81 c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1);
82 82
83 c->start_time = ngx_current_msec;
84
83 ls->handler(c); 85 ls->handler(c);
84 86
85 return; 87 return;
86 88
87 } 89 }