From 7355b0d4c7ba2cdaeb0ab458dd48217813e10687 Mon Sep 17 00:00:00 2001 From: Giorgos Logiotatidis Date: Mon, 27 Mar 2017 15:48:46 +0300 Subject: [PATCH] Add keep-alive wsgi config. --- snippets/wsgi/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snippets/wsgi/config.py b/snippets/wsgi/config.py index 116ba7a86..6e44a0233 100644 --- a/snippets/wsgi/config.py +++ b/snippets/wsgi/config.py @@ -7,3 +7,7 @@ workers = getenv('WSGI_NUM_WORKERS', 2) errorlog = '-' loglevel = getenv('WSGI_LOG_LEVEL', 'info') + +# Larger keep-alive values maybe needed when directly talking to ELBs +# See https://github.com/benoitc/gunicorn/issues/1194 +keepalive = getenv('WSGI_KEEP_ALIVE', 2)