Permalink
Browse files

make sure memcache works in async mode

  • Loading branch information...
1 parent e89b0d6 commit bf4e13c5e67c71ee27699d85474c659c69ea0e8f @tarekziade tarekziade committed Dec 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 vaurien/protocols/memcache.py
@@ -57,7 +57,7 @@ def _handle(self, source, dest, to_backend):
dest.sendall(data)
# Receiving the response now
- buffer = dest.recv(buffer_size)
+ buffer = self._get_data(dest, buffer_size)
source.sendall(buffer)
if buffer.startswith('VALUE'):
@@ -67,7 +67,7 @@ def _handle(self, source, dest, to_backend):
EOW = CRLF
while not buffer.endswith(EOW):
- data = dest.recv(buffer_size)
+ data = self._get_data(dest, buffer_size)
buffer += data
source.sendall(data)

0 comments on commit bf4e13c

Please sign in to comment.