Extend Captain reload keepalive window

This commit is contained in:
Kasra Bigdeli committed 2026-09-21 10:08:40 -07:00
1 parent 484a17468e
commit e6cb4e4a5b
1 file changed
+4 -4
+4 -4
View File
@@ -42,10 +42,10 @@
listen 80;
client_max_body_size 300m;
# Keep idle API connections alive briefly during a graceful reload. This
# gives clients time to reuse the old-worker connection and receive a
# graceful Connection: close response instead of racing the worker exit.
keepalive_min_timeout 1s;
# Keep idle API connections alive during a graceful reload long enough for
# pooled clients to retire them. Node's default agent keeps idle sockets for
# 5 seconds, so leave a safety margin beyond that client-side timeout.
keepalive_min_timeout 10s;
gzip on;
gzip_disable "MSIE [1-6]\.";