summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-01-31 18:15:58 (GMT)
committerGuido van Rossum <guido@python.org>2003-01-31 18:15:58 (GMT)
commit8f24cdc0d5e30e2f924ed2e8a71400fa87a70983 (patch)
tree051c3bf55ae03d10efaa63dffdd7b18b4bea592f /Modules/socketmodule.c
parent4f707ac8b13a03609bc7618f7e7b17b97b7a0aeb (diff)
downloadcpython-8f24cdc0d5e30e2f924ed2e8a71400fa87a70983.zip
cpython-8f24cdc0d5e30e2f924ed2e8a71400fa87a70983.tar.gz
cpython-8f24cdc0d5e30e2f924ed2e8a71400fa87a70983.tar.bz2
SF patch #678257 by Geoff Talvola.
In sendall(), do an internal select before each send() call, instead of only for the first one.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
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;