Loading src/event/kqueue.cpp +2 −1 Changes for src/event/kqueue.cpp: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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; Loading Loading
src/event/kqueue.cpp +2 −1 Changes for src/event/kqueue.cpp: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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; Loading