Browse Source

fix #166: read continue to process data of ssl cache

ithewei 3 years ago
parent
commit
89f2b62f68
1 changed files with 4 additions and 1 deletions
  1. 4 1
      event/nio.c

+ 4 - 1
event/nio.c

@@ -315,7 +315,10 @@ read:
     }
     io->readbuf.tail += nread;
     __read_cb(io, buf, nread);
-    // if (nread == len) goto read;
+    if (nread == len && !io->closed) {
+        // read continue
+        goto read;
+    }
     return;
 read_error:
 disconnect: