10 seconds timeout for NTP requests.
authorCryptoManiac <balthazar@yandex.ru>
Sun, 20 Sep 2015 13:06:08 +0000 (16:06 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Sun, 20 Sep 2015 13:06:08 +0000 (16:06 +0300)
src/ntp.cpp

index 25772c0..9c1b6e5 100644 (file)
@@ -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);