Commit ef25a828 authored by jan.koester's avatar jan.koester
Browse files

urgent http fix

parent 151bec32
Loading
Loading
Loading
Loading
+2 −1
Changes for src/event/kqueue.cpp: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -524,7 +524,8 @@ namespace netplus {
                        // Drain all available TLS records to avoid stalling
                        // when multiple records arrive in a single TCP segment.
                        // Edge-triggered: drain completely before returning
                        bool hasAppData = gotRawData ||
                        bool hasAppData = (events & KQUEUE_EV_READ) ||
                                          gotRawData ||
                                          c->slots[0].csock->hasBufferedData();
                        while (hasAppData && c->slots[0].csock->getHandshakeDone() && !needClose) {
                            recvBuf.size = BLOCKSIZE;