A much more reasonable number of HTTP connections.

This commit is contained in:
Itamar Turner-Trauring 2022-12-13 15:54:19 -05:00
parent be3ace7ade
commit 6ae40a932d

View File

@ -323,6 +323,7 @@ class StorageClient(object):
swissnum = nurl.path[0].encode("ascii")
certificate_hash = nurl.user.encode("ascii")
pool = HTTPConnectionPool(reactor)
pool.maxPersistentPerHost = 20
if cls.TEST_MODE_REGISTER_HTTP_POOL is not None:
cls.TEST_MODE_REGISTER_HTTP_POOL(pool)