[New-bugs-announce] [issue36208] AsyncIO V4MAPPED addresses with V6ONLY.

Jan Seeger report at bugs.python.org
Wed Mar 6 05:34:18 EST 2019


New submission from Jan Seeger <jan.seeger+python at thenybble.de>:

I'm working with aiocoap, which uses the AI_V4MAPPED flag to use IPv4-mapped addresses for dual-stack support. When trying to run on Windows, creating a connection fails, because the socket option IPV6_V6ONLY is set to true per default on Windows, whereas the value is configurable on Linux. I've attached a file that should reproduce the error.

A possible fix would be calling socket.setsockopt(socket.IPPROTO_IPV6,
socket.IPV6_V6ONLY, False) when V4-mapped addresses have been requested
(this bug can also appear on Linux when /proc/sys/net/ipv6/bindv6only
contains 1).

If you require any more information, feel free to contact me!

----------
components: asyncio
files: socket_test_bad.py
messages: 337289
nosy: asvetlov, jeeger, yselivanov
priority: normal
severity: normal
status: open
title: AsyncIO V4MAPPED addresses with V6ONLY.
Added file: https://bugs.python.org/file48190/socket_test_bad.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36208>
_______________________________________


More information about the New-bugs-announce mailing list