mirror of
https://github.com/python/cpython.git
synced 2026-05-09 14:11:28 -04:00
Use sendall() in the stream test instead of send().
This commit is contained in:
@@ -58,7 +58,7 @@ def testdgram(proto, addr):
|
||||
def teststream(proto, addr):
|
||||
s = socket.socket(proto, socket.SOCK_STREAM)
|
||||
s.connect(addr)
|
||||
s.send(teststring)
|
||||
s.sendall(teststring)
|
||||
buf = data = receive(s, 100)
|
||||
while data and '\n' not in buf:
|
||||
data = receive(s, 100)
|
||||
|
||||
Reference in New Issue
Block a user