Commit 222dfc7d authored by Victor Stinner's avatar Victor Stinner

Issue #22117: Fix sock_call_ex() for non-blocking socket

Call internal_select() with a timeout of 0 second, not a timeout of -1 second
(blocking)!
parent 8912d141
......@@ -742,7 +742,7 @@ sock_call_ex(PySocketSockObject *s,
res = 1;
}
else {
res = internal_select(s, writing, -1, connect);
res = internal_select(s, writing, timeout, connect);
}
if (res == -1) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment