Loading src/event/iocp.cpp +6 −1 Changes for src/event/iocp.cpp: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ namespace netplus { HANDLE State; eventapi* api; con* CurCon; mutable std::mutex cltmtx; }; class poll { Loading Loading @@ -245,6 +246,9 @@ namespace netplus { continue; } if (!pClientContext->cltmtx.try_lock()) { continue; } try { auto& curCon = pClientContext->CurCon; if (!curCon->SendData.empty()) { Loading @@ -267,9 +271,10 @@ namespace netplus { if(e.getErrorType()!=NetException::Note){ closesocket(pClientContext->CurCon->csock->fd()); eargs->evpoll->RemoveFromClientList(pClientContext); } continue; } } pClientContext->cltmtx.unlock(); } // for } }; Loading Loading
src/event/iocp.cpp +6 −1 Changes for src/event/iocp.cpp: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ namespace netplus { HANDLE State; eventapi* api; con* CurCon; mutable std::mutex cltmtx; }; class poll { Loading Loading @@ -245,6 +246,9 @@ namespace netplus { continue; } if (!pClientContext->cltmtx.try_lock()) { continue; } try { auto& curCon = pClientContext->CurCon; if (!curCon->SendData.empty()) { Loading @@ -267,9 +271,10 @@ namespace netplus { if(e.getErrorType()!=NetException::Note){ closesocket(pClientContext->CurCon->csock->fd()); eargs->evpoll->RemoveFromClientList(pClientContext); } continue; } } pClientContext->cltmtx.unlock(); } // for } }; Loading