Improved reporting for EADDRINUSE error
In murano/common/wsgi.py, the EADDRINUSE error was going unreported. Improved the error message. Closes-Bug: 1511449 Change-Id: Iccd393a9f219f631e645bb7f952d26d8445ec45d
This commit is contained in:
parent
5bdb77491f
commit
6b280a1779
@ -109,7 +109,8 @@ class Service(service.Service):
|
||||
eventlet.sleep(0.1)
|
||||
if not sock:
|
||||
raise RuntimeError(_("Could not bind to %(host)s:%(port)s "
|
||||
"after trying for 30 seconds") %
|
||||
"after trying for 30 seconds: Address"
|
||||
" already in use.") %
|
||||
{'host': host, 'port': port})
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
# sockets can hang around forever without keepalive
|
||||
|
Loading…
x
Reference in New Issue
Block a user