Skip to content

Commit

Permalink
Add keep-alive wsgi config.
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis committed Mar 27, 2017
1 parent dc9e493 commit 7355b0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snippets/wsgi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 7355b0d

Please sign in to comment.