Skip to content

Commit e132909

Browse files
committed
fix premature EOF detection in streams
The docker engine may send empty chunks of data in the stream (especially since moby/moby#13033) They should not be taken for EOF Signed-off-by: Anthony Baire <[email protected]>
1 parent 64dcd5a commit e132909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def _multiplexed_response_stream_helper(self, response):
233233
break
234234
_, length = struct.unpack('>BxxxL', header)
235235
if not length:
236-
break
236+
continue
237237
data = response.raw.read(length)
238238
if not data:
239239
break

0 commit comments

Comments
 (0)