Correctly pass connection pool parameter

This commit is contained in:
Erik Johnston 2015-05-28 16:48:53 +01:00
parent 0f118e55db
commit 79e37a7ecb
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ class SimpleHttpClient(object):
# 'like a browser'
pool = HTTPConnectionPool(reactor)
pool.maxPersistentPerHost = 10
self.agent = Agent(reactor, pool)
self.agent = Agent(reactor, pool=pool)
self.version_string = hs.version_string
def request(self, method, *args, **kwargs):

View file

@ -105,7 +105,7 @@ class MatrixFederationHttpClient(object):
self.server_name = hs.hostname
pool = HTTPConnectionPool(reactor)
pool.maxPersistentPerHost = 10
self.agent = MatrixFederationHttpAgent(reactor, pool)
self.agent = MatrixFederationHttpAgent(reactor, pool=pool)
self.clock = hs.get_clock()
self.version_string = hs.version_string