You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong base class for transport returned by loop.create_datagram_endpoint() #90352
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:
assignee=Noneclosed_at=Nonecreated_at=<Date2021-12-29.14:56:23.713>labels= ['3.11', '3.8', '3.9', '3.10', 'expert-asyncio']
title='Wrong base class for transport returned by loop.create_datagram_endpoint()'updated_at=<Date2021-12-29.20:44:28.023>user='https://github.com/asvetlov'
Selector-based event loops returns _SelectorDatagramTransport which inherits asyncio.Transport instead of asyncio.DatagramTransport.
isinstance(transp, asyncio.DatagramTransport) fails.
It doesn't affect the actual execution since transp.sendto() and transp.error_received() are correctly implemented.
The bug doesn't affect Windows proactor-based implementation.
The fix is relatively easy, a champion is welcome!
Activity
asvetlov commentedon Dec 29, 2021
Selector-based event loops returns
_SelectorDatagramTransportwhich inheritsasyncio.Transportinstead ofasyncio.DatagramTransport.isinstance(transp, asyncio.DatagramTransport) fails.
It doesn't affect the actual execution since
transp.sendto()andtransp.error_received()are correctly implemented.The bug doesn't affect Windows proactor-based implementation.
The fix is relatively easy, a champion is welcome!
carlosdamazio commentedon Dec 29, 2021
I think I have a fix for this, I opened a PR. Let me know if you have any questions.
CAM-Gerlach commentedon Oct 15, 2022
For reference, that PR is #30291
GH-90352: fix _SelectorDatagramTransport to inherit from DatagramTran…
pythonGH-90352: fix _SelectorDatagramTransport to inherit from Datagr…