New submission from Kjell Braden <k.pyt...@brdn.eu>:

on Windows 10 with Python 3.8.2 and Python 3.9.0a4, the ProactorEventLoop 
raises "OSError: [WinError 87] The parameter is incorrect" when recvfrom on an 
AF_INET6 socket returns data:


DEBUG:asyncio:Using proactor: IocpProactor
INFO:asyncio:Datagram endpoint local_addr=('::', 11111) remote_addr=None 
created: (<_ProactorDatagramTransport fd=288>, <__main__.Prot object at 
0x0000028739A09580>)
ERROR:root:error_received
Traceback (most recent call last):
  File "...\Python\Python39\lib\asyncio\proactor_events.py", line 548, in 
_loop_reading
    res = fut.result()
  File "...\Python\Python39\lib\asyncio\windows_events.py", line 808, in _poll
    value = callback(transferred, key, ov)
  File "...\Python\Python39\lib\asyncio\windows_events.py", line 496, in 
finish_recv
    return ov.getresult()
OSError: [WinError 87] The parameter is incorrect


The same code works without issues on python 3.7 or when using 
WindowsSelectorEventLoopPolicy.

----------
components: asyncio
files: udp_ipv6_server.py
messages: 364794
nosy: asvetlov, kbr, yselivanov
priority: normal
severity: normal
status: open
title: ProactorEventLoop fails on recvfrom with IPv6 sockets
type: behavior
versions: Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48995/udp_ipv6_server.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40040>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to