Browse Source

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

yhirose 1 năm trước cách đây
mục cha
commit
01dcf1d0ad
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  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;