Loading src/connection.cpp −6 Changes for src/connection.cpp: 0 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -80,12 +80,6 @@ netplus::condata<char>::const_iterator netplus::condata<char>::end() const{ void netplus::condata<char>::resize(size_t size_c){ size_t rs = size(); if(rs<size_c){ NetException e; e[NetException::Critical] << "resize failed argument bigger the condata size !"; throw e; } std::move( begin()+size_c, end(), Loading src/event/epoll.cpp +7 Changes for src/event/epoll.cpp: 7 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -259,6 +259,13 @@ namespace netplus { buffer buf(wcon->SendData.data(),ssize); size_t sended = wcon->csock->sendData(buf); if (sended > ssize) { NetException e; e[NetException::Note] << "WriteEventHandler: Fatal socket error detected. Closing connection."; throw e; } wcon->SendData.resize(sended); wcon->lasteventime = time(nullptr); Loading Loading
src/connection.cpp −6 Changes for src/connection.cpp: 0 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -80,12 +80,6 @@ netplus::condata<char>::const_iterator netplus::condata<char>::end() const{ void netplus::condata<char>::resize(size_t size_c){ size_t rs = size(); if(rs<size_c){ NetException e; e[NetException::Critical] << "resize failed argument bigger the condata size !"; throw e; } std::move( begin()+size_c, end(), Loading
src/event/epoll.cpp +7 Changes for src/event/epoll.cpp: 7 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -259,6 +259,13 @@ namespace netplus { buffer buf(wcon->SendData.data(),ssize); size_t sended = wcon->csock->sendData(buf); if (sended > ssize) { NetException e; e[NetException::Note] << "WriteEventHandler: Fatal socket error detected. Closing connection."; throw e; } wcon->SendData.resize(sended); wcon->lasteventime = time(nullptr); Loading