Improve: Support authorizing the online host quantity

This commit is contained in:
yuanyuanxiang
2025-07-19 03:36:59 +08:00
parent 468918494e
commit 468535eef7
10 changed files with 69 additions and 68 deletions

View File

@@ -43,12 +43,7 @@ IOCPServer::IOCPServer(void)
m_hListenEvent = WSA_INVALID_EVENT;
m_hListenThread = NULL;
m_ulMaxConnections = THIS_CFG.GetInt("settings", "MaxConnection");
if (m_ulMaxConnections<=0)
{
m_ulMaxConnections = 10000;
}
m_ulMaxConnections = 10000;
InitializeCriticalSection(&m_cs);