python-memcached misses working backend
Bug #1380670 reported by
Alexander Makarov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python Memcached |
New
|
Undecided
|
Unassigned |
Bug Description
In multi-backend case there is always a chance for client to miss a working backend among not responding.
Assuming memcached is up and running on localhost:11211:
import memcache
import random
cl = memcache.
while cl.set(
'while' must be an infinite loop since cl.set() returns True on success but it exits in milliseconds instead.
Bug may be fixed by changing backend selection logic, patch attached.
The other way is to use https:/