Skip to content

Commit

Permalink
Revert "Fix #1969 (without unnecessary sleep_for) (#1982)"
Browse files Browse the repository at this point in the history
This reverts commit 01dcf1d.
  • Loading branch information
yhirose committed Dec 2, 2024
1 parent c817d65 commit fd294d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -3308,6 +3308,8 @@ inline bool keep_alive(const std::atomic<socket_t> &svr_sock, socket_t sock,
} else {
return true; // Ready for read
}

std::this_thread::sleep_for(microseconds{interval_usec});
}

return false;
Expand Down

0 comments on commit fd294d0

Please sign in to comment.