◐ Shell
clean mode source ↗

GH-88968: Reject socket that is already used as a transport by gvanrossum · Pull Request #98010 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@kumaraditya303

I think SSL socket and datagram have the same issue though I haven't verified this. Perhaps also add this check to _make_datagram_transport and _make_ssl_transport?

@gvanrossum

Done.

I worried a bit about how thoughly to test this, but then realized that this code is tested every time a transport is created using one of these functions -- even if the user didn't pass sock=..., since it is called if the socket was created by the higher-level code (e.g. create_connection) too.

kumaraditya303

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I think news can be skipped as the change is very small, leaving up to you to decide.

carljm added a commit to carljm/cpython that referenced this pull request

Oct 8, 2022

mpage pushed a commit to mpage/cpython that referenced this pull request

Oct 11, 2022

Labels