mirror of
https://github.com/python/cpython.git
synced 2026-01-03 14:02:21 +00:00
Use sendall() in the stream test instead of send().
This commit is contained in:
parent
cb65688218
commit
9bd1401bbb
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue