Skip to content

Commit e27a170

Browse files
committed
fixed:connect limit number is incorrent
1 parent f35dc10 commit e27a170

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

XEngine_Source/StorageModule_Session/Session_Stroage/Session_DLStroage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ BOOL CSession_DLStroage::Session_DLStroage_MaxConnect(LPCTSTR lpszClientAddr)
485485
}
486486
st_Locker.unlock_shared();
487487

488-
if (nExistNumber > m_nMaxConnect)
488+
if (nExistNumber >= m_nMaxConnect)
489489
{
490490
Session_IsErrorOccur = TRUE;
491491
Session_dwErrorCode = ERROR_STORAGE_MODULE_SESSION_MAXCONNECT;

XEngine_Source/StorageModule_Session/Session_Stroage/Session_UPStroage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ BOOL CSession_UPStroage::Session_UPStroage_MaxConnect(LPCTSTR lpszClientAddr)
461461
}
462462
st_Locker.unlock_shared();
463463

464-
if (nExistNumber > m_nMaxConnect)
464+
if (nExistNumber >= m_nMaxConnect)
465465
{
466466
Session_IsErrorOccur = TRUE;
467467
Session_dwErrorCode = ERROR_STORAGE_MODULE_SESSION_MAXCONNECT;

XEngine_Source/XEngine_StorageApp/StorageApp_UPLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ BOOL XEngine_Task_HttpUPLoader(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, in
6565
//连接数限制处理
6666
if (st_ServiceCfg.st_XLimit.nMaxUPConnect > 0)
6767
{
68-
if (!Session_DLStroage_MaxConnect(lpszClientAddr))
68+
if (!Session_UPStroage_MaxConnect(lpszClientAddr))
6969
{
7070
st_HDRParam.bIsClose = TRUE;
7171
st_HDRParam.nHttpCode = 503;

0 commit comments

Comments
 (0)