From 7cca87f5ef2de981387c77e0df7dc261d8812095 Mon Sep 17 00:00:00 2001 From: yhirose Date: Sat, 16 Nov 2024 10:24:08 -0500 Subject: [PATCH] Fix #1969 (without unnecessary sleep_for) --- httplib.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/httplib.h b/httplib.h index f3835ee330..bfad4fffeb 100644 --- a/httplib.h +++ b/httplib.h @@ -3308,8 +3308,6 @@ inline bool keep_alive(const std::atomic &svr_sock, socket_t sock, } else { return true; // Ready for read } - - std::this_thread::sleep_for(microseconds{interval_usec}); } return false;