Commit 888f0698 authored by Guido van Rossum's avatar Guido van Rossum

SF patch #678257 by Geoff Talvola.

In sendall(), do an internal select before each send() call, instead
of only for the first one.
parent affacc21
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment