-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPv6 not necessarly present if socket.AF_INET6 is defined #2104
Labels
Comments
My bad... it seems the code responsible is on asyncio. |
Actually we can fix it by replacing the hostname of the server (localhost) by the IPv4 address (127.0.0.1). Would it be an acceptable fix for you? https://github.com/aio-libs/aiohttp/blob/master/tests/test_run_app.py#L264 |
Fixed by #2105 but will also be fixed on asyncio at some point http://bugs.python.org/issue30945 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Long story short
Was trying to run the test on Python 3.5 and failed because I don't have IPv6 in a Docker container by default and the test thought I had.
Expected behaviour
Use IPv4 if IPv6 is not present.
Actual behaviour
According to the doc:
This probably means that the CPython has been compiled with IPv6, not that all the network interfaces have it.
Steps to reproduce
Your environment
Python 3.5.3, Docker 17.05.0-ce build 89658bed64
The text was updated successfully, but these errors were encountered: