#960: IOError Port 8080 not bound on '::0' in helloworld on IPv6
---------------------------+----------------------------------------------- -
Reporter: jaraco | Owner: fumanchu
Type: defect | Status: reopened
Priority: normal | Milestone: 3.2
Component: CherryPy code | Resolution:
Keywords: IPv6 binding |
---------------------------+----------------------------------------------- -
Comment (by jaraco):
It turns out that the reason it is failing for me is because I'm using a
non-canonical form for INADDR6_ANY. As in this bug description, I was
using ::0 to bind to all addresses, but process/servers.py expects only ::
at one point.
I am attaching a new patch against the latest trunk. This patch addresses
the issue, but because it also changes the logic somewhat, I want to run
it by fumanchu. An alternate approach would be to simply add '::0' and
'::0:0:0:0' to client_host().
Probably the best solution would be to have something for parsing IPv6
addresses, such as the ipaddr project (http://code.google.com/p/ipaddr-
py/). It's a single .py file, so probably could be included inline (still
no dependencies).
--
Ticket URL: <http://www.cherrypy.org/ticket/960>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework