Merge pull request #1237 from tahoe-lafs/3954.faster-http

Faster HTTP for immutable downloads

Fixes: ticket:3954
This commit is contained in:
Jean-Paul Calderone 2023-01-02 10:09:55 -05:00 committed by GitHub
commit 1c643ebbaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 0 deletions

0
newsfragments/3954.minor Normal file
View File

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)