mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Retry socket binding up to five times upon EADDRNOTAVAIL.
This commit is contained in:
parent
4e4fe18a21
commit
5e5e0fd6cf
@ -214,7 +214,6 @@ def create_sockets(conf, log):
|
|||||||
log.error("Connection in use: %s", str(addr))
|
log.error("Connection in use: %s", str(addr))
|
||||||
if e.args[0] == errno.EADDRNOTAVAIL:
|
if e.args[0] == errno.EADDRNOTAVAIL:
|
||||||
log.error("Invalid address: %s", str(addr))
|
log.error("Invalid address: %s", str(addr))
|
||||||
sys.exit(1)
|
|
||||||
if i < 5:
|
if i < 5:
|
||||||
log.error("Retrying in 1 second.")
|
log.error("Retrying in 1 second.")
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user