From 5e5e0fd6cf66af1e968b939ee28dd07300e0de2a Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Tue, 7 Apr 2015 22:06:26 -0400 Subject: [PATCH] Retry socket binding up to five times upon EADDRNOTAVAIL. --- gunicorn/sock.py | 1 - 1 file changed, 1 deletion(-) diff --git a/gunicorn/sock.py b/gunicorn/sock.py index 221126be..6405ba38 100644 --- a/gunicorn/sock.py +++ b/gunicorn/sock.py @@ -214,7 +214,6 @@ def create_sockets(conf, log): log.error("Connection in use: %s", str(addr)) if e.args[0] == errno.EADDRNOTAVAIL: log.error("Invalid address: %s", str(addr)) - sys.exit(1) if i < 5: log.error("Retrying in 1 second.") time.sleep(1)