requested changes.

This commit is contained in:
Will McGinnis
2016-03-03 19:50:17 -05:00
parent 8a18e4c743
commit b0d3de0ada
5 changed files with 4 additions and 10 deletions
+1 -2
View File
@@ -91,5 +91,4 @@ class RequestsHttpConnection(Connection):
"""
Explicitly closes connections
"""
self.session.close()
return True
self.session.close()
-1
View File
@@ -118,4 +118,3 @@ class Urllib3HttpConnection(Connection):
Explicitly closes connection
"""
self.pool.close()
return True
+1 -1
View File
@@ -29,5 +29,5 @@ class PoolingConnection(Connection):
"""
Explicitly close connection
"""
return True
pass
+2 -5
View File
@@ -231,11 +231,9 @@ class ConnectionPool(object):
"""
Explicitly closes connections
"""
for conn in self.connections:
for conn in self.orig_connections:
conn.close()
return True
class DummyConnectionPool(ConnectionPool):
def __init__(self, connections, **kwargs):
if len(connections) != 1:
@@ -253,8 +251,7 @@ class DummyConnectionPool(ConnectionPool):
"""
Explicitly closes connections
"""
for conn in self.connections:
conn.close()
self.connection.close()
def _noop(self, *args, **kwargs):
pass
-1
View File
@@ -358,4 +358,3 @@ class Transport(object):
Explcitly closes connections
"""
self.connection_pool.close()
return True