fix: move thread count to preprocessor var
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
use random port, test availability
|
||||
*/
|
||||
#define PROXY_PORT 58421
|
||||
#define PROXY_THREAD_COUNT 32
|
||||
|
||||
typedef unsigned __int64 SOCKET;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user