[asyncio] bpo-29743: ssl socket leak during handshake by fafhrd91 · Pull Request #480 · python/cpython
fafhrd91
changed the title
ssl socket leak during handshake
bpo-29743: ssl socket leak during handshake
vstinner
changed the title
bpo-29743: ssl socket leak during handshake
[asyncio] bpo-29743: ssl socket leak during handshake
1st1
approved these changes
1st1 pushed a commit that referenced this pull request
1st1 pushed a commit that referenced this pull request
vxgmichel added a commit to vxgmichel/cpython that referenced this pull request
This fixes asyncio issue python#480. The _SelectorDatagramTransport.sendto method has to be modified so _sock.send is used only if _sock is connected. It also protects socket.getsockname against OSError in _SelectorTransport. This might happen on Windows if the socket is not connected (e.g. for UDP broadcasting).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters