summaryrefslogtreecommitdiff
path: root/glanceclient/common/https.py
diff options
context:
space:
mode:
authorIan Cordasco <ian.cordasco@rackspace.com>2015-01-15 16:09:23 -0600
committerIan Cordasco <ian.cordasco@rackspace.com>2015-01-15 17:20:57 -0600
commitf2107512ee4be7bfbc1aaefdef12e1cba1147777 (patch)
treeece347e139371e8bc374f7390344839648777e2a /glanceclient/common/https.py
parentaebbcff100f5a07e64506d72fbd4427e725085a9 (diff)
downloadpython-glanceclient-f2107512ee4be7bfbc1aaefdef12e1cba1147777.tar.gz
Close streamed requests explicitly
If we don't explicitly close a response after streaming its download, then we can run into HTTPConnectionPool full warnings. It also will hurt performance if we have to continuously create new sockets for new responses. Calling close will return the connection to the pool so it can be reused. Note this is only necessary when streaming a response. If we don't stream it, then requests will return the connection to the pool for us. Change-Id: I803bd4dd0e769c233501d5e5ff07a19705fbe233 Closes-bug: 1341777
Diffstat (limited to 'glanceclient/common/https.py')
0 files changed, 0 insertions, 0 deletions