Loading src/event/epoll.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -314,6 +314,7 @@ namespace netplus { rcv = c->csock->recvData(buf, 0); } catch (NetException& e) { if (e.getErrorType() == NetException::Note){ rearm.disarm(); setpollEventsFd(fd,EPOLLIN | EPOLLRDHUP | EPOLLONESHOT); return; } Loading @@ -336,6 +337,7 @@ namespace netplus { c->csock->flush_out(); } catch (NetException& e) { if (e.getErrorType() == NetException::Note){ rearm.disarm(); setpollEventsFd(fd,EPOLLOUT | EPOLLRDHUP | EPOLLONESHOT); return; } Loading @@ -356,6 +358,7 @@ namespace netplus { } catch (NetException& e) { if (e.getErrorType() == NetException::Note){ rearm.disarm(); setpollEventsFd(fd,EPOLLOUT | EPOLLRDHUP | EPOLLONESHOT); return; } Loading @@ -382,6 +385,7 @@ namespace netplus { int ev = EPOLLIN | EPOLLRDHUP | EPOLLONESHOT; if (c->csock->hasPendingWrite() || !c->SendData.empty()) ev |= EPOLLOUT; rearm.disarm(); setpollEventsFd(fd, ev); return; } Loading Loading
src/event/epoll.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -314,6 +314,7 @@ namespace netplus { rcv = c->csock->recvData(buf, 0); } catch (NetException& e) { if (e.getErrorType() == NetException::Note){ rearm.disarm(); setpollEventsFd(fd,EPOLLIN | EPOLLRDHUP | EPOLLONESHOT); return; } Loading @@ -336,6 +337,7 @@ namespace netplus { c->csock->flush_out(); } catch (NetException& e) { if (e.getErrorType() == NetException::Note){ rearm.disarm(); setpollEventsFd(fd,EPOLLOUT | EPOLLRDHUP | EPOLLONESHOT); return; } Loading @@ -356,6 +358,7 @@ namespace netplus { } catch (NetException& e) { if (e.getErrorType() == NetException::Note){ rearm.disarm(); setpollEventsFd(fd,EPOLLOUT | EPOLLRDHUP | EPOLLONESHOT); return; } Loading @@ -382,6 +385,7 @@ namespace netplus { int ev = EPOLLIN | EPOLLRDHUP | EPOLLONESHOT; if (c->csock->hasPendingWrite() || !c->SendData.empty()) ev |= EPOLLOUT; rearm.disarm(); setpollEventsFd(fd, ev); return; } Loading