mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-10-22 19:42:34 +00:00
smp-server: limit concurrency in proxy command processing (#1162)
* smp: put client proxy command processing threads under a shared semaphore * add LIMITS.max_proc_threads to server config * rename to PROXY.client_concurrency * retry on strictly greater than max concurrency * set default to 16 * rename * fix limit --------- Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
This commit is contained in:
1 parent
e3f5d244c1
commit
f50fa5c60b
4 files changed
+45
-18
No files matched your search
+2
-1
@@ -119,7 +119,8 @@ cfg =
|
||||
transportConfig = defaultTransportServerConfig {Server.alpn = Just supportedSMPHandshakes},
|
||||
controlPort = Nothing,
|
||||
smpAgentCfg = defaultSMPClientAgentConfig,
|
||||
allowSMPProxy = False
|
||||
allowSMPProxy = False,
|
||||
serverClientConcurrency = 2
|
||||
}
|
||||
|
||||
cfgV7 :: ServerConfig
|
||||
|
||||
Reference in new issue
Block a user