Waiting limit

This commit is contained in:
ruti 2024-06-08 20:13:46 +03:00
parent ceef4841a5
commit a8440ecba2

View File

@ -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);