Bug with Python3 in wait_for_occupied_port/check_port not patched
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cherrypy3 (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
See https:/
Summary:
« The new exception hierarchy in Python 3.3 has created a bug in check_port in process/servers.py. IOError and socket.error are both now aliases of OSError, so a check for socket.error wrongly catches the IOError that's thrown in the try block. »
It pretty much makes cherrypy unusable with Python 3.3+ (3.4 shipped with trusty), since when you start a server, about 50 s later it shuts down because of « port not bound », when it really is.
Changed in cherrypy3 (Ubuntu): | |
status: | New → Incomplete |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
I see that Trusty is on 3.2.2-4ubuntu5 and Utopic on 3.5.0-1. Please could you confirm which of these versions are affected?
Please could you also provide step-by-step instructions to reproduce the problem for a developer who is not familiar with cherrypy?
Once done, please change the bug status back to New. Thanks!