From 631a9b850aff4a84a420d33ee07f2432ebcea340 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Sun, 3 Aug 2025 11:08:17 +0100 Subject: [PATCH] Change the Keep-Alive idle timeout to 95 seconds For consistency with the timeout chosen by other languages since #261 landed: - https://github.com/heroku/heroku-buildpack-php/pull/823 - https://github.com/heroku/ruby-getting-started/pull/190 GUS-W-18319007. Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com> --- gunicorn.conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn.conf.py b/gunicorn.conf.py index f908c3a68..c20e84407 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -54,7 +54,7 @@ # connections is always initiated by the router and not gunicorn, to prevent a race condition # if the router sends a request to the app just as gunicorn is closing the connection: # https://devcenter.heroku.com/articles/http-routing#keepalives -keepalive = 100 +keepalive = 95 # Enable logging of incoming requests to stdout. accesslog = "-"