From: Guido van Rossum Date: Fri, 31 Jan 2003 18:15:58 +0000 (+0000) Subject: SF patch #678257 by Geoff Talvola. X-Git-Tag: v2.3c1~2151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f24cdc0d5e30e2f924ed2e8a71400fa87a70983;p=python SF patch #678257 by Geoff Talvola. In sendall(), do an internal select before each send() call, instead of only for the first one. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 2b0b796079..63ad50add5 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -1848,8 +1848,8 @@ sock_sendall(PySocketSockObject *s, PyObject *args) return NULL; Py_BEGIN_ALLOW_THREADS - internal_select(s, 1); do { + internal_select(s, 1); n = send(s->sock_fd, buf, len, flags); if (n < 0) break;