mirror of
https://github.com/python/cpython
synced 2024-09-06 12:59:59 +00:00
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:
parent
4f707ac8b1
commit
8f24cdc0d5
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue