Mercurial > cpython-lru_cache-weakref
diff Lib/socket.py @ 21963:2faa23facef7 2.2
The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715.
Replaces calls to socket.send() (which isn't guaranteed to send all data)
with the new socket.sendall() method.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 16 Feb 2002 23:08:25 +0000 |
| parents | e1f3fe5677da |
| children | 16288b054fc3 |
line wrap: on
line diff
--- a/Lib/socket.py Fri Feb 15 21:00:17 2002 +0000 +++ b/Lib/socket.py Sat Feb 16 23:08:25 2002 +0000 @@ -181,7 +181,7 @@ def flush(self): if self._wbuf: - self._sock.send(self._wbuf) + self._sock.sendall(self._wbuf) self._wbuf = "" def fileno(self): @@ -197,7 +197,7 @@ self.flush() def writelines(self, list): - filter(self._sock.send, list) + filter(self._sock.sendall, list) self.flush() def read(self, n=-1):
