From c09ce8b02ad608fc4db6581e8cd4e53400154789 Mon Sep 17 00:00:00 2001 From: neru Date: Sat, 11 Apr 2026 12:40:21 -0300 Subject: [PATCH] fix: move thread count to preprocessor var --- src/unlocker/proxy.cpp | 2 +- src/unlocker/proxy.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unlocker/proxy.cpp b/src/unlocker/proxy.cpp index b3bb9e9..3cd8ca9 100644 --- a/src/unlocker/proxy.cpp +++ b/src/unlocker/proxy.cpp @@ -190,7 +190,7 @@ bool Proxy::init() listen(_listenSocket, SOMAXCONN); _running = true; - for (int i = 0; i < 16; ++i) + for (int i = 0; i < PROXY_THREAD_COUNT; ++i) { _poolThreads.emplace_back([this]() { while (_running) diff --git a/src/unlocker/proxy.h b/src/unlocker/proxy.h index 77c10bb..f50331f 100644 --- a/src/unlocker/proxy.h +++ b/src/unlocker/proxy.h @@ -17,6 +17,7 @@ use random port, test availability */ #define PROXY_PORT 58421 +#define PROXY_THREAD_COUNT 32 typedef unsigned __int64 SOCKET;