SF patch #678257 by Geoff Talvola.

In sendall(), do an internal select before each send() call, instead
of only for the first one.
This commit is contained in:
Guido van Rossum 2003-01-31 18:15:58 +00:00
parent 4f707ac8b1
commit 8f24cdc0d5

View file

@ -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;