Skip to content
Browse files

fix to handle 0 bytes in voldemort.py's _receive_response

  • Loading branch information...
1 parent 9ab3d77 commit 03f1e0c6f0936bec54becbd0f1c57d3142d48e41 Anthony Lauzon committed Aug 20, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 clients/python/voldemort.py
View
4 clients/python/voldemort.py
@@ -169,6 +169,10 @@ def _send_request(self, connection, req_bytes):
def _receive_response(self, connection):
size_bytes = connection.recv(4)
size = struct.unpack('>i', size_bytes)
+
+ if not size[0]:
+ return ''
+
return connection.recv(size[0])
## Bootstrap cluster metadata from a list of urls of nodes in the cluster.

0 comments on commit 03f1e0c

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