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;