Commit 03e8dc1c authored by jan.koester's avatar jan.koester
Browse files

fxies

parent 9cecdb51
Loading
Loading
Loading
Loading
−6
Changes for src/connection.cpp: 0 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -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(),
+7
Changes for src/event/epoll.cpp: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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);