Skip to content

Commit

Permalink
Fix yhirose#1969 (without unnecessary sleep_for) (yhirose#1982)
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose authored Nov 16, 2024
1 parent 8e37877 commit 01dcf1d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -3308,8 +3308,6 @@ 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 01dcf1d

Please sign in to comment.