Permalink
Browse files

make sure the timeout=0 case is not broken - fixes #1

  • Loading branch information...
1 parent 942b5f8 commit 00737a7b10818f6e0dfb82ec5c4085672102b3ca @tarekziade tarekziade committed Oct 5, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 memcachepool/cache.py
View
@@ -47,6 +47,11 @@ def __init__(self, server, params):
self._pool = ClientPool(self._get_client, maxsize=self.maxsize)
self._blacklist = {}
+ def _get_memcache_timeout(self, timeout):
+ if timeout == 0:
+ return timeout
+ return super(UMemcacheCache, self)._get_memcache_timeout(timeout)
+
def _pick_server(self):
# update the blacklist
for server, age in self._blacklist.items():

0 comments on commit 00737a7

Please sign in to comment.