Loading src/event/kqueue.cpp +5 −1 Changes for src/event/kqueue.cpp: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -232,7 +232,6 @@ namespace netplus { rcon->lasteventime = time(nullptr); // 🚨 FIX: Check for graceful shutdown (0 bytes read) if (rcvsize == 0) { CloseEventHandler(pos, tid, args); return; // Connection closed, exit handler Loading Loading @@ -283,6 +282,10 @@ namespace netplus { wcon->lasteventime = time(nullptr); if(wcon->SendData.empty()){ setpollEvents(wcon,EVFILT_READ,EV_ADD | EV_ONESHOT); return; } setpollEvents(wcon,EVFILT_WRITE,EV_ADD | EV_ONESHOT); }catch(NetException &e){ if(e.getErrorType()== NetException::Note){ Loading Loading @@ -371,6 +374,7 @@ public: // 1. Check for listener socket (data.ptr is nullptr) if (events == pollapi::EventHandlerStatus::EVCON) { pollptr.ConnectEventHandler(i, tid, args); continue; } // 2. Retrieve event flags (may throw on EV_ERROR) Loading Loading
src/event/kqueue.cpp +5 −1 Changes for src/event/kqueue.cpp: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -232,7 +232,6 @@ namespace netplus { rcon->lasteventime = time(nullptr); // 🚨 FIX: Check for graceful shutdown (0 bytes read) if (rcvsize == 0) { CloseEventHandler(pos, tid, args); return; // Connection closed, exit handler Loading Loading @@ -283,6 +282,10 @@ namespace netplus { wcon->lasteventime = time(nullptr); if(wcon->SendData.empty()){ setpollEvents(wcon,EVFILT_READ,EV_ADD | EV_ONESHOT); return; } setpollEvents(wcon,EVFILT_WRITE,EV_ADD | EV_ONESHOT); }catch(NetException &e){ if(e.getErrorType()== NetException::Note){ Loading Loading @@ -371,6 +374,7 @@ public: // 1. Check for listener socket (data.ptr is nullptr) if (events == pollapi::EventHandlerStatus::EVCON) { pollptr.ConnectEventHandler(i, tid, args); continue; } // 2. Retrieve event flags (may throw on EV_ERROR) Loading