소스 검색

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;
     io->readbuf.tail += nread;
     __read_cb(io, buf, nread);
     __read_cb(io, buf, nread);
-    // if (nread == len) goto read;
+    if (nread == len && !io->closed) {
+        // read continue
+        goto read;
+    }
     return;
     return;
 read_error:
 read_error:
 disconnect:
 disconnect: