mirror of
https://github.com/hufrea/byedpi.git
synced 2024-12-22 14:25:44 +00:00
Waiting limit
This commit is contained in:
parent
ceef4841a5
commit
a8440ecba2
2
desync.c
2
desync.c
@ -85,7 +85,7 @@ static inline void delay(long ms)
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
void wait_send(int sfd)
|
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 = {};
|
struct tcpi tcpi = {};
|
||||||
socklen_t ts = sizeof(tcpi);
|
socklen_t ts = sizeof(tcpi);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user