commit | e12454f44afbb7d48aecb9d479fcb2fb4799499f | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Sat Feb 16 23:06:19 2002 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Sat Feb 16 23:06:19 2002 +0000 |
tree | 5f67ec0019bed3aa130e25882158e6579ce5da49 | |
parent | 976ade691ceef24b167c7617b50c0bd9b176e594 [diff] [blame] |
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.
diff --git a/Lib/httplib.py b/Lib/httplib.py index cd0bdb9..04cfca6 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py
@@ -403,7 +403,7 @@ if self.debuglevel > 0: print "send:", repr(str) try: - self.sock.send(str) + self.sock.sendall(str) except socket.error, v: if v[0] == 32: # Broken pipe self.close()