Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
socket.IPPROTO_IPV6 undefined in Python 2.7.12 for Windows #138
In the current commit (7e807c9), the line 172 of the file waitress/server.py contains:
self.socket.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 1)
Thing is, IPPROTO_IPV6 is not defined in socket...
Should it be replaced by its value (41) defined in Ws2def.h, while we gently wait for Python to fix this ?
Thanks for the support,
I'd accept a patch that tried to use the value from
Not a big fan, but alas we are stuck with it.
BTW, it looks like it won't ever be fixed for Python 2.7 on Windows. So waiting is not an option. I'd recommend Python 3.5 anyway. IPv6 support should work just fine on Windows, although the testing that is currently done is done on AppVeyor on Python 3.5 only.
I get the same message with Python 3.5.2 when trying to run devpi-server:
What are the workarounds to be able to use it ? I don't care of IPv6 in my case.