浏览代码

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

ithewei 3 年之前
父节点
当前提交
89f2b62f68
共有 1 个文件被更改,包括 4 次插入1 次删除
  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: