소스 검색

Fix #1969 (without unnecessary sleep_for) (#1982)

yhirose 1 년 전
부모
커밋
01dcf1d0ad
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      httplib.h

+ 0 - 2
httplib.h

@@ -3308,8 +3308,6 @@ inline bool keep_alive(const std::atomic<socket_t> &svr_sock, socket_t sock,
     } else {
       return true; // Ready for read
     }
-
-    std::this_thread::sleep_for(microseconds{interval_usec});
   }
 
   return false;