aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_connection.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2021-04-08 00:15:48 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2021-04-08 00:15:48 +0300
commitd9996d6f27150bfb9c9c00d77fac940712aa1d28 (patch)
tree0dddf15a4e9c9d31cb66677ea7f8746e9402f4c7 /src/core/ngx_connection.h
parent5599731c00bd152f765c7cea24a7d257bf13320c (diff)
downloadnginx-d9996d6f27150bfb9c9c00d77fac940712aa1d28.tar.gz
nginx-d9996d6f27150bfb9c9c00d77fac940712aa1d28.zip
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.
Diffstat (limited to 'src/core/ngx_connection.h')
-rw-r--r--src/core/ngx_connection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h
index 9d8ac46d2..4716da492 100644
--- a/src/core/ngx_connection.h
+++ b/src/core/ngx_connection.h
@@ -162,6 +162,7 @@ struct ngx_connection_s {
ngx_atomic_uint_t number;
+ ngx_msec_t start_time;
ngx_uint_t requests;
unsigned buffered:8;