Commit 0145f91f authored by jan.koester's avatar jan.koester
Browse files

test

parent 0948545b
Loading
Loading
Loading
Loading
+3 −3
Changes for src/event/kqueue.cpp: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -410,19 +410,19 @@ public:
                        events = pollptr.getEventFlags(i);

                        // Check for error/hangs (EPOLLHUP/EPOLLERR)
                        if (events & EV_ERROR) {
                        if (events == EV_ERROR) {
                            // Treat as close event if any of these flags are set
                            pollptr.CloseEventHandler(i,tid,args);
                            continue;
                        }

                        // 4. Prioritize read events (new data from client)
                        if (events & EVFILT_READ) {
                        if (events == EVFILT_READ) {
                            pollptr.ReadEventHandler(i, tid, args);
                        }

                        // 5. Handle write events (ready to send data)
                        if (events & EVFILT_WRITE) {
                        if (events == EVFILT_WRITE) {
                            pollptr.WriteEventHandler(i, tid, args);
                        }