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
"pydoc -p" should listen to [::] if IPv6 is supported #47463
Comments
According to "pydoc --help", pydoc -p <port> The IP address pydoc binds to is not specified, thus I would expect it Current behaviour of "pydoc -p 1234" is to bind to the IPv4-only On a IPv4/IPv6 dual-stack machine, I would expect pydoc to listen to Then access to the pydoc webserver is Trivial patch attached (tested on Linux x86 machine with local IPv6 |
That will break on systems where AF_INET6 doesn't default to |
I understand Windows XP isn’t so important these days. So maybe we just need to disable IPV6_V6ONLY. (Unless we want this for 2.7 maybe?) |
Currently pydoc only binds to IPv4 localhost, not the “any-address” 0.0.0.0. See bpo-22421 and bpo-672656. Apart from satisfying Hans’s expectation, what is the benefit of running pydoc on IPv6? I guess it would be possible to bind two sockets, one to IPv4 localhost (127.1 or ::ffff:127.0.0.1), and the other IPv6 localhost (::1). But why bother? |
Agreed with Martin. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: