Netplay: Increase retry/timeout delay before dropping connection when data can't be sent

Fixes disconnections right after connecting when ping times are relatively high
This commit is contained in:
Sour 2024-08-09 17:11:53 +09:00
parent d4501b7954
commit cae3dc76fd
1 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ bool WouldBlock(int nError)
int Socket::Send(char *buf, int len, int flags)
{
int retryCount = 15;
int retryCount = 100;
int nError = 0;
int returnVal;
do {
@ -235,7 +235,7 @@ int Socket::Send(char *buf, int len, int flags)
return 0;
}
std::this_thread::sleep_for(std::chrono::duration<int, std::milli>(10));
std::this_thread::sleep_for(std::chrono::duration<int, std::milli>(20));
}
}
}