python / cpython

The Python programming language
https://www.python.org
Other
63.6k stars 30.47k forks source link

Make multiprocessing.connection.Client support ipv6 #90966

Open 7e33162a-a1cc-4c88-8ff2-fa85e5be9385 opened 2 years ago

7e33162a-a1cc-4c88-8ff2-fa85e5be9385 commented 2 years ago
BPO 46810
Nosy @pitrou, @applio

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: ```python assignee = None closed_at = None created_at = labels = ['type-bug', '3.9'] title = 'Make multiprocessing.connection.Client support ipv6' updated_at = user = 'https://bugs.python.org/mhupfer' ``` bugs.python.org fields: ```python activity = actor = 'terry.reedy' assignee = 'none' closed = False closed_date = None closer = None components = [] creation = creator = 'mhupfer' dependencies = [] files = [] hgrepos = [] issue_num = 46810 keywords = [] message_count = 1.0 messages = ['413599'] nosy_count = 3.0 nosy_names = ['pitrou', 'davin', 'mhupfer'] pr_nums = [] priority = 'normal' resolution = None stage = None status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue46810' versions = ['Python 3.9'] ```

7e33162a-a1cc-4c88-8ff2-fa85e5be9385 commented 2 years ago

Hi there,

connecting a multiprocessing.connection.Client to an ipv6 address is not possible, since the address family is not passed into the constructor of class SocketClient. The constructor determines the family by calling address_type(address), which never returns AF_INET6.

The class SocketListener already implemented ipv6 support.

kind regards