Loading src/event/iocp.cpp +3 −3 Changes for src/event/iocp.cpp: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -241,14 +241,13 @@ namespace netplus { client* pClientContext = (client*)lpContext; std::lock_guard<std::mutex> lock(pClientContext->cltmtx); if (!bReturn && dwBytesTransfered == 0) { eargs->evpoll->RemoveFromClientList(pClientContext); continue; } try { pClientContext->cltmtx.lock(); auto& curCon = pClientContext->CurCon; if (!curCon->SendData.empty()) { eargs->event->ResponseEvent(curCon, tid, args); Loading @@ -265,6 +264,7 @@ namespace netplus { eargs->event->RequestEvent(curCon, tid, args); } WSAResetEvent(pClientContext->CurCon->csock->_Overlapped.hEvent); pClientContext->cltmtx.unlock(); } catch (NetException& e) { std::cerr << e.what() << std::endl; if(e.getErrorType()!=NetException::Note){ Loading @@ -272,8 +272,8 @@ namespace netplus { eargs->evpoll->RemoveFromClientList(pClientContext); continue; } } pClientContext->cltmtx.unlock(); } } // for } }; Loading Loading
src/event/iocp.cpp +3 −3 Changes for src/event/iocp.cpp: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -241,14 +241,13 @@ namespace netplus { client* pClientContext = (client*)lpContext; std::lock_guard<std::mutex> lock(pClientContext->cltmtx); if (!bReturn && dwBytesTransfered == 0) { eargs->evpoll->RemoveFromClientList(pClientContext); continue; } try { pClientContext->cltmtx.lock(); auto& curCon = pClientContext->CurCon; if (!curCon->SendData.empty()) { eargs->event->ResponseEvent(curCon, tid, args); Loading @@ -265,6 +264,7 @@ namespace netplus { eargs->event->RequestEvent(curCon, tid, args); } WSAResetEvent(pClientContext->CurCon->csock->_Overlapped.hEvent); pClientContext->cltmtx.unlock(); } catch (NetException& e) { std::cerr << e.what() << std::endl; if(e.getErrorType()!=NetException::Note){ Loading @@ -272,8 +272,8 @@ namespace netplus { eargs->evpoll->RemoveFromClientList(pClientContext); continue; } } pClientContext->cltmtx.unlock(); } } // for } }; Loading