Use sendall() in the stream test instead of send().
This commit is contained in:
parent
cb65688218
commit
9bd1401bbb
|
@ -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…
Reference in New Issue