From 8f24cdc0d5e30e2f924ed2e8a71400fa87a70983 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 31 Jan 2003 18:15:58 +0000 Subject: SF patch #678257 by Geoff Talvola. In sendall(), do an internal select before each send() call, instead of only for the first one. --- Modules/socketmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 2b0b796..63ad50a 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; -- cgit v0.12