From fd294d0872fba2cb7847ac291a3b4466447dba38 Mon Sep 17 00:00:00 2001 From: yhirose Date: Mon, 2 Dec 2024 12:52:19 -0500 Subject: [PATCH] Revert "Fix #1969 (without unnecessary sleep_for) (#1982)" This reverts commit 01dcf1d0adb05f0ce1a18e9494326ae9746953ce. --- httplib.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/httplib.h b/httplib.h index e25fa2a860..980a8b1f27 100644 --- a/httplib.h +++ b/httplib.h @@ -3308,6 +3308,8 @@ 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;