Retry socket binding up to five times upon EADDRNOTAVAIL.

This commit is contained in:
Ryan Petrello 2015-04-07 22:06:26 -04:00
parent 4e4fe18a21
commit 5e5e0fd6cf

View File

@ -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)