diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-02-16 23:08:25 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-02-16 23:08:25 (GMT) |
commit | f0c3827c501785c3bf4b819ee19b6c4542daab1e (patch) | |
tree | b90e6fc7bcc432088ce0d82c5c3952dba01dd99f /Lib/gopherlib.py | |
parent | 3b841e9b4bf38da0ddd6a23800e7fb1265ff5a0c (diff) | |
download | cpython-f0c3827c501785c3bf4b819ee19b6c4542daab1e.zip cpython-f0c3827c501785c3bf4b819ee19b6c4542daab1e.tar.gz cpython-f0c3827c501785c3bf4b819ee19b6c4542daab1e.tar.bz2 |
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.
Diffstat (limited to 'Lib/gopherlib.py')
-rw-r--r-- | Lib/gopherlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/gopherlib.py b/Lib/gopherlib.py index 8dea566..03d12ec 100644 --- a/Lib/gopherlib.py +++ b/Lib/gopherlib.py @@ -66,7 +66,7 @@ def send_selector(selector, host, port = 0): port = int(port) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((host, port)) - s.send(selector + CRLF) + s.sendall(selector + CRLF) s.shutdown(1) return s.makefile('rb') |