mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
merge 3.4 (#21586)
This commit is contained in:
commit
3ecb1928cb
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ length message::
|
||||||
chunk = self.sock.recv(min(MSGLEN - bytes_recd, 2048))
|
chunk = self.sock.recv(min(MSGLEN - bytes_recd, 2048))
|
||||||
if chunk == b'':
|
if chunk == b'':
|
||||||
raise RuntimeError("socket connection broken")
|
raise RuntimeError("socket connection broken")
|
||||||
chucks.append(chunk)
|
chunks.append(chunk)
|
||||||
bytes_recd = bytes_recd + len(chunk)
|
bytes_recd = bytes_recd + len(chunk)
|
||||||
return b''.join(chunks)
|
return b''.join(chunks)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue