Memcache Client not Closing Connection When Done
Bug #337826 reported by
Nikoleta Verbeck
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Memcached Manager |
Fix Released
|
Medium
|
Nikoleta Verbeck |
Bug Description
Python-Memcache Client needs to close its connection when getting stats from the servers. Current stats are returned but the client connections are not closed.
Changed in memcached-manager: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I haven't look at the code yet, but perhaps we can solve this with a context manager for the connection?
It is in the line of openSocket then do stuff, finally close?
with mySocket():
doStuff()