fix: move thread count to preprocessor var

This commit is contained in:
2026-04-11 12:40:21 -03:00
parent 0af818fc0f
commit c09ce8b02a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ bool Proxy::init()
listen(_listenSocket, SOMAXCONN); listen(_listenSocket, SOMAXCONN);
_running = true; _running = true;
for (int i = 0; i < 16; ++i) for (int i = 0; i < PROXY_THREAD_COUNT; ++i)
{ {
_poolThreads.emplace_back([this]() { _poolThreads.emplace_back([this]() {
while (_running) while (_running)
+1
View File
@@ -17,6 +17,7 @@
use random port, test availability use random port, test availability
*/ */
#define PROXY_PORT 58421 #define PROXY_PORT 58421
#define PROXY_THREAD_COUNT 32
typedef unsigned __int64 SOCKET; typedef unsigned __int64 SOCKET;