[issue40040] ProactorEventLoop fails on recvfrom with IPv6 sockets

2020-03-22 Thread Kjell Braden


Kjell Braden  added the comment:

sorry - is a duplicate of https://bugs.python.org/issue39148

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue40040] ProactorEventLoop fails on recvfrom with IPv6 sockets

2020-03-22 Thread Kjell Braden


New submission from Kjell Braden :

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=('::', 1) remote_addr=None 
created: (<_ProactorDatagramTransport fd=288>, <__main__.Prot object at 
0x028739A09580>)
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 

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