From 01dcf1d0adb05f0ce1a18e9494326ae9746953ce Mon Sep 17 00:00:00 2001 From: yhirose Date: Sat, 16 Nov 2024 10:56:57 -0500 Subject: [PATCH] Fix #1969 (without unnecessary sleep_for) (#1982) --- httplib.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/httplib.h b/httplib.h index f3835ee..bfad4ff 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;