mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue