Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make sure memcache works in async mode

  • Loading branch information...
commit bf4e13c5e67c71ee27699d85474c659c69ea0e8f 1 parent e89b0d6
@tarekziade tarekziade authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 vaurien/protocols/memcache.py
View
4 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)
Please sign in to comment.
Something went wrong with that request. Please try again.