From a8440ecba2005e2b949b79b742bd2e1f9210a952 Mon Sep 17 00:00:00 2001 From: ruti <> Date: Sat, 8 Jun 2024 20:13:46 +0300 Subject: [PATCH] Waiting limit --- desync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desync.c b/desync.c index 9fd25e9..cdc9ec2 100644 --- a/desync.c +++ b/desync.c @@ -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);