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)!
This commit is contained in:
Victor Stinner 2015-04-06 22:30:41 +02:00
parent 8912d1418e
commit 222dfc7d94
1 changed files with 1 additions and 1 deletions

View File

@ -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) {