From fdb033f550e1f72552740ea488238560e2a3591f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 30 Jul 2019 21:48:48 -0700 Subject: [PATCH] Reduce wait time for UDP to offset retransmission delays --- mist/mist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mist/mist.cpp b/mist/mist.cpp index 7ad6489..c0bd943 100644 --- a/mist/mist.cpp +++ b/mist/mist.cpp @@ -362,7 +362,7 @@ PortTestStatus TestPort(PSOCKADDR_STORAGE addr, int proto, int port, bool withSe FD_ZERO(&fds); FD_SET(serverSock, &fds); - timeout.tv_sec = 3; + timeout.tv_sec = 2; err = select(0, &fds, nullptr, nullptr, &timeout); if (err == 1) { // Our FD was signalled for data available