Skip to content

Commit 89f2b62

Browse files
committed
fix #166: read continue to process data of ssl cache
1 parent 30355ff commit 89f2b62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

event/nio.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,10 @@ static void nio_read(hio_t* io) {
315315
}
316316
io->readbuf.tail += nread;
317317
__read_cb(io, buf, nread);
318-
// if (nread == len) goto read;
318+
if (nread == len && !io->closed) {
319+
// read continue
320+
goto read;
321+
}
319322
return;
320323
read_error:
321324
disconnect:

0 commit comments

Comments
 (0)