diff Lib/gopherlib.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 e8be40c75a3f
children a1de0bab5475
line wrap: on
line diff
--- a/Lib/gopherlib.py	Fri Feb 15 21:00:17 2002 +0000
+++ b/Lib/gopherlib.py	Sat Feb 16 23:08:25 2002 +0000
@@ -66,7 +66,7 @@
         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')