Skip to content

Commit

Permalink
[eventlet] close sockets at graceful shutdown
Browse files Browse the repository at this point in the history
Ref #922
  • Loading branch information
tilgovi committed Mar 13, 2016
1 parent 527dd7a commit 48d1e74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gunicorn/workers/geventlet.py
Expand Up @@ -54,6 +54,7 @@ def _eventlet_serve(sock, handle, concurrency):
gt.link(_eventlet_stop, server_gt, conn)
conn, addr, gt = None, None, None
except eventlet.StopServe:
sock.close()
pool.waitall()
return

Expand Down

0 comments on commit 48d1e74

Please sign in to comment.