Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Do not connect UDP sockets when broadcast is allowed #493

Closed
wants to merge 4 commits into from

Conversation

vxgmichel
Copy link

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?

This fixes issue python#480.
The _SelectorDatagramTransport.sendto method has to be modified
so _sock.sendto is used in all cases (since there is no proper
way to tell if the socket is connected or not). Could that be an
issue for connected sockets?
Vincent Michel added 2 commits February 16, 2017 14:28
This might happen on Windows if the socket is not connected (e.g.
for UDP broadcasting)
@vxgmichel vxgmichel force-pushed the issue-480 branch 2 times, most recently from 132fb64 to 6b501a9 Compare February 16, 2017 13:49
@1st1
Copy link
Member

1st1 commented Mar 2, 2017

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

@vxgmichel
Copy link
Author

No problem, moved to python/cpython#423.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants