Skip to content
Browse files

Merge remote-tracking branch 'spikegronim/fix-hang-bug' into merge

  • Loading branch information...
2 parents 64eb484 + c2c53af commit 64dc6a36a5d31fe9a2190f776f71be756afe0374 @mdomsch committed with Dec 5, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 S3/S3.py
View
3 S3/S3.py
@@ -902,6 +902,9 @@ def recv_file(self, request, stream, labels, start_position = 0, retries = _max_
while (current_position < size_total):
this_chunk = size_left > self.config.recv_chunk and self.config.recv_chunk or size_left
data = http_response.read(this_chunk)
+ if len(data) == 0:
+ raise S3Error("EOF from S3!")
+
stream.write(data)
if start_position == 0:
md5_hash.update(data)

0 comments on commit 64dc6a3

Please sign in to comment.
Something went wrong with that request. Please try again.