python / asyncio

asyncio historical repository
https://docs.python.org/3/library/asyncio.html
1.04k stars 177 forks source link

Do not connect UDP sockets when broadcast is allowed #493

Closed vxgmichel closed 7 years ago

vxgmichel commented 7 years ago

This PR fixes issue #480, as explained in this comment.

The _SelectorDatagramTransport.sendto method has to be modified so _sock.sendto is used in all cases (because there is no proper way to tell if the socket is connected or not). Could that be an issue for connected sockets?

1st1 commented 7 years ago

Please reopen this PR at https://github.com/python/cpython. This repo is going to be deleted soon.

vxgmichel commented 7 years ago

No problem, moved to python/cpython#423.