Improve logging on listener bind
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rocket Web Server |
New
|
Undecided
|
Unassigned |
Bug Description
Python 3.4.2
Rocket 1.2.5
You can get various exception on bind, in my case it was some issue with ipv6 bind and it was hard to debug without exception message:
ERROR:Rocket.
Traceback (most recent call last):
File "/app/venv/
listener.
socket.gaierror: [Errno -9] Address family for hostname not supported
So I suggest this little patch:
--- rocket/
+++ rocket/listener.py 2017-07-13 08:37:40.115524793 +0000
@@ -85,7 +85,7 @@
except:
msg = "Socket %s:%i in use by other process and it won't share."
- self.err_
+ self.err_
else:
# We want socket operations to timeout periodically so we can
# check if the server is shutting down