Up maxPersistentPerHost count

pull/168/head
Erik Johnston 2015-05-28 15:45:46 +01:00
parent 086df80790
commit 11f51e6ded
2 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ class SimpleHttpClient(object):
# BrowserLikePolicyForHTTPS which will do regular cert validation
# 'like a browser'
pool = HTTPConnectionPool(reactor)
pool.maxPersistentPerHost = 10
self.agent = Agent(reactor, pool)
self.version_string = hs.version_string

View File

@ -104,6 +104,7 @@ class MatrixFederationHttpClient(object):
self.signing_key = hs.config.signing_key[0]
self.server_name = hs.hostname
pool = HTTPConnectionPool(reactor)
pool.maxPersistentPerHost = 10
self.agent = MatrixFederationHttpAgent(reactor, pool)
self.clock = hs.get_clock()
self.version_string = hs.version_string