mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 03:34:56 -04:00
Reload cache factors from disk on SIGHUP (#12673)
This commit is contained in:
parent
a559c8b0d9
commit
d38d242411
11 changed files with 199 additions and 61 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue