python-glanceclient/glanceclient
Louis Taylor f98ab688ef Fix leaking sockets after v1 list operation
Since the move to using the requests library, v1 list operations keep
the connection open to the glance server. This is normally closed by the
garbage collector if it is not explicitly closed, however the paginate
function used by the list method had a circular reference preventing it
from ever being collected during the lifecycle of a service consuming
glanceclient.

This is problematic, since it causes long running nova processes to run
out of file descriptors for new connections.

This patch makes paginate() non-recursive, which allows the connection
to be freed.

Change-Id: I16a7b02f2b10e506e91719712cf34ef0aea1afc0
Closes-Bug: 1423939
2015-03-04 20:07:53 +00:00
..
common Merge "Register our own ConnectionPool without globals" 2015-02-26 21:29:06 +00:00
openstack Change oslo.utils to oslo_utils 2015-02-05 22:27:16 +00:00
v1 Fix leaking sockets after v1 list operation 2015-03-04 20:07:53 +00:00
v2 Merge "Glance image delete output" 2015-02-20 14:48:49 +00:00
__init__.py Remove vim header 2014-01-14 16:40:22 +00:00
client.py Don't require version to create Client instance 2014-12-09 14:45:06 +00:00
exc.py Replace old httpclient with requests 2014-07-10 13:22:05 +05:30
shell.py Merge "Fixed CLI help for bash-completion" 2015-02-23 19:02:44 +00:00