From eaf3355c968ad9c9a08aeb2c6a37ade4a1a95a0b Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 21 May 2017 10:29:00 -0700 Subject: [PATCH] Reduce socket read timeout to 100 ms to allow LiStopConnection() to complete faster --- src/PlatformSockets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PlatformSockets.c b/src/PlatformSockets.c index bcfa53f..8d527d7 100644 --- a/src/PlatformSockets.c +++ b/src/PlatformSockets.c @@ -52,9 +52,9 @@ int recvUdpSocket(SOCKET s, char* buffer, int size) { FD_ZERO(&readfds); FD_SET(s, &readfds); - // Wait up to 500 ms for the socket to be readable + // Wait up to 100 ms for the socket to be readable tv.tv_sec = 0; - tv.tv_usec = 500 * 1000; + tv.tv_usec = 100 * 1000; err = select((int)(s) + 1, &readfds, NULL, NULL, &tv); if (err <= 0) {