[issue38907] Add IPv6 Dual-Stack control for http.server

2019-11-25 Thread JIanqiu Tao


Change by JIanqiu Tao :


--
keywords: +patch
pull_requests: +16860
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17378

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38907] Add IPv6 Dual-Stack control for http.server

2019-11-24 Thread JIanqiu Tao


JIanqiu Tao  added the comment:

"--no-dual-stack" seems to be a better argument name. "--ipv6-only" lead to 
ambiguity in a IPv4 only environment.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38907] Add IPv6 Dual-Stack control for http.server

2019-11-24 Thread JIanqiu Tao


New submission from JIanqiu Tao :

In Python 3.8+, when we run the http.server in a PC that support IPv6, it will 
bind IPv6 socket normally. On Linux or some other platforms, it also bind IPv4, 
that's pretty good, but on Windows, it doesn't work and "--bind 0.0.0.0" have 
to be provided to make it works in IPv4 environment.
In another case, once someone only want the http.server provide service in IPv6 
environment, but linux will still bind IPv4 socket automatically.

Could we add a argument such as "--ipv6-only" for http.server and open the 
support of Dual-Stack socket by default?

--
components: Library (Lib)
messages: 357399
nosy: zkonge
priority: normal
severity: normal
status: open
title: Add IPv6 Dual-Stack control for http.server
type: enhancement
versions: Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com