Loading src/event/epoll.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -196,9 +196,8 @@ namespace netplus { void ReadEventHandler(int pos,const int tid,void *args) { con *rcon = (con*)_Events[pos].data.ptr; std::shared_ptr<char[]> buf( new char[BLOCKSIZE], []( char *p ){ delete [] p; }); try{ std::shared_ptr<char[]> buf( new char[BLOCKSIZE], []( char *p ){ delete [] p; }); size_t rcvsize = _ServerSocket->recvData(rcon->csock, buf.get(), BLOCKSIZE); rcon->lasteventime = time(nullptr); Loading Loading @@ -367,6 +366,7 @@ EVENTLOOP: std::cerr << e.what() << std::endl; } } goto EVENTLOOP; } }; Loading Loading
src/event/epoll.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -196,9 +196,8 @@ namespace netplus { void ReadEventHandler(int pos,const int tid,void *args) { con *rcon = (con*)_Events[pos].data.ptr; std::shared_ptr<char[]> buf( new char[BLOCKSIZE], []( char *p ){ delete [] p; }); try{ std::shared_ptr<char[]> buf( new char[BLOCKSIZE], []( char *p ){ delete [] p; }); size_t rcvsize = _ServerSocket->recvData(rcon->csock, buf.get(), BLOCKSIZE); rcon->lasteventime = time(nullptr); Loading Loading @@ -367,6 +366,7 @@ EVENTLOOP: std::cerr << e.what() << std::endl; } } goto EVENTLOOP; } }; Loading