Skip to content

Commit

Permalink
Waiting limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ruti committed Jun 8, 2024
1 parent ceef484 commit a8440ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desync.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static inline void delay(long ms)
#ifdef __linux__
void wait_send(int sfd)
{
for (int i = 0; params.wait_send; i++) {
for (int i = 0; params.wait_send && i < 500; i++) {
struct tcpi tcpi = {};
socklen_t ts = sizeof(tcpi);

Expand Down

0 comments on commit a8440ec

Please sign in to comment.