mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2025-07-03 08:15:40 +00:00
Reduce wait time for UDP to offset retransmission delays
This commit is contained in:
parent
efdcaed4c1
commit
fdb033f550
@ -362,7 +362,7 @@ PortTestStatus TestPort(PSOCKADDR_STORAGE addr, int proto, int port, bool withSe
|
|||||||
FD_ZERO(&fds);
|
FD_ZERO(&fds);
|
||||||
FD_SET(serverSock, &fds);
|
FD_SET(serverSock, &fds);
|
||||||
|
|
||||||
timeout.tv_sec = 3;
|
timeout.tv_sec = 2;
|
||||||
err = select(0, &fds, nullptr, nullptr, &timeout);
|
err = select(0, &fds, nullptr, nullptr, &timeout);
|
||||||
if (err == 1) {
|
if (err == 1) {
|
||||||
// Our FD was signalled for data available
|
// Our FD was signalled for data available
|
||||||
|
Loading…
x
Reference in New Issue
Block a user