diff options
author | David Robertson <davidr@element.io> | 2022-05-11 14:43:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 13:43:22 +0000 |
commit | d38d242411b8910dfacde1e61fd3a0ec5cbcaa66 (patch) | |
tree | 8b23e7639236f73bf0b88c77a99a8a5d3be7b9a8 /synapse/http | |
parent | Respect the `@cancellable` flag for `ReplicationEndpoint`s (#12700) (diff) | |
download | synapse-d38d242411b8910dfacde1e61fd3a0ec5cbcaa66.tar.xz |
Reload cache factors from disk on SIGHUP (#12673)
Diffstat (limited to 'synapse/http')
-rw-r--r-- | synapse/http/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/client.py b/synapse/http/client.py index 8310fb466a..b2c9a7c670 100644 --- a/synapse/http/client.py +++ b/synapse/http/client.py @@ -348,7 +348,7 @@ class SimpleHttpClient: # XXX: The justification for using the cache factor here is that larger instances # will need both more cache and more connections. # Still, this should probably be a separate dial - pool.maxPersistentPerHost = max((100 * hs.config.caches.global_factor, 5)) + pool.maxPersistentPerHost = max(int(100 * hs.config.caches.global_factor), 5) pool.cachedConnectionTimeout = 2 * 60 self.agent: IAgent = ProxyAgent( |