Loading src/event/kqueue.cpp +7 −10 Changes for src/event/kqueue.cpp: 7 added lines, 10 removed lines. Original line number Diff line number Diff line Loading @@ -133,17 +133,9 @@ namespace netplus { }; int getEventFlags(int pos) { if (_Events[pos].flags & (EV_EOF | EV_ERROR)) { NetException e; e[NetException::Error] << "getEventFlags: event error detected."; if (_Events[pos].flags & EV_EOF) { e[NetException::Error] << " Connection closed by remote peer (EV_EOF/Hangup)."; } if (_Events[pos].flags & EV_ERROR) { e[NetException::Error] << " Unrecoverable I/O error (EV_ERROR)."; } NetException e; e[NetException::Error] << "getEventFlags: Unrecoverable I/O error detected."; throw e; } return _Events[pos].filter; Loading Loading @@ -381,6 +373,11 @@ namespace netplus { events = pollptr.getEventFlags(i); if (events & EV_EOF) { pollptr.CloseEventHandler(i, tid, args); continue; } // Prioritize read events (new data from client) if (events & EVFILT_READ) { pollptr.ReadEventHandler(i,tid,args); Loading Loading
src/event/kqueue.cpp +7 −10 Changes for src/event/kqueue.cpp: 7 added lines, 10 removed lines. Original line number Diff line number Diff line Loading @@ -133,17 +133,9 @@ namespace netplus { }; int getEventFlags(int pos) { if (_Events[pos].flags & (EV_EOF | EV_ERROR)) { NetException e; e[NetException::Error] << "getEventFlags: event error detected."; if (_Events[pos].flags & EV_EOF) { e[NetException::Error] << " Connection closed by remote peer (EV_EOF/Hangup)."; } if (_Events[pos].flags & EV_ERROR) { e[NetException::Error] << " Unrecoverable I/O error (EV_ERROR)."; } NetException e; e[NetException::Error] << "getEventFlags: Unrecoverable I/O error detected."; throw e; } return _Events[pos].filter; Loading Loading @@ -381,6 +373,11 @@ namespace netplus { events = pollptr.getEventFlags(i); if (events & EV_EOF) { pollptr.CloseEventHandler(i, tid, args); continue; } // Prioritize read events (new data from client) if (events & EVFILT_READ) { pollptr.ReadEventHandler(i,tid,args); Loading