changeset: 95460:af664f48b9b8 user: Victor Stinner date: Mon Apr 06 22:30:41 2015 +0200 files: Modules/socketmodule.c description: 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)! diff -r cdc83da0b0f8 -r af664f48b9b8 Modules/socketmodule.c --- a/Modules/socketmodule.c Mon Apr 06 23:16:34 2015 +0200 +++ b/Modules/socketmodule.c Mon Apr 06 22:30:41 2015 +0200 @@ -742,7 +742,7 @@ res = 1; } else { - res = internal_select(s, writing, -1, connect); + res = internal_select(s, writing, timeout, connect); } if (res == -1) {