8000 bpo-42756: Configure LMTP Unix-domain socket to use global default timeout when timeout not provided by rrhodes · Pull Request #23969 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-42756: Configure LMTP Unix-domain socket to use global default timeout when timeout not provided #23969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jan 1, 2021
Merged
Prev Previous commit
Raise value error if invalid connection port provided
  • Loading branch information
Ross Rhodes committed Jan 1, 2021
commit 4ba315fd77faff7d7142876e10752f703e65f6a8
2 changes: 1 addition & 1 deletion Lib/test/mock_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def create_connection(address, timeout=socket_module._GLOBAL_DEFAULT_TIMEOUT,
try:
int_port = int(address[1])
except ValueError:
raise
raise error
ms = MockSocket()
if timeout is socket_module._GLOBAL_DEFAULT_TIMEOUT:
timeout = getdefaulttimeout()
Expand Down
0