Skip to content

Commit fd294d0

Browse files
committed
Revert "Fix #1969 (without unnecessary sleep_for) (#1982)"
This reverts commit 01dcf1d.
1 parent c817d65 commit fd294d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

httplib.h

+2
Original file line numberDiff line numberDiff line change
@@ -3308,6 +3308,8 @@ inline bool keep_alive(const std::atomic<socket_t> &svr_sock, socket_t sock,
33083308
} else {
33093309
return true; // Ready for read
33103310
}
3311+
3312+
std::this_thread::sleep_for(microseconds{interval_usec});
33113313
}
33123314

33133315
return false;

0 commit comments

Comments
 (0)