From cd37f49194e0f377335ecbf8990b7c92e0a19ef0 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sun, 20 Sep 2015 16:06:08 +0300 Subject: [PATCH] 10 seconds timeout for NTP requests. --- src/ntp.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ntp.cpp b/src/ntp.cpp index 25772c0..9c1b6e5 100644 --- a/src/ntp.cpp +++ b/src/ntp.cpp @@ -348,7 +348,7 @@ int64_t DoReq(SOCKET sockfd, socklen_t servlen, struct sockaddr cliaddr) } fd_set fdset; - struct timeval timeout = {5, 0}; + struct timeval timeout = {10, 0}; FD_ZERO(&fdset); FD_SET(sockfd, &fdset); -- 1.7.1