Up maxPersistentPerHost count

This commit is contained in:
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