From 251ac7e7feeeb56368de6fa4aa922d2360757c1d Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 6 Jun 2014 09:44:09 +1000 Subject: [PATCH] Be more generous with socket connect timeouts --- src/libckpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libckpool.c b/src/libckpool.c index b445bc47..c7fc64ef 100644 --- a/src/libckpool.c +++ b/src/libckpool.c @@ -410,7 +410,7 @@ int connect_socket(char *url, char *port) * we can connect to quickly. */ noblock_socket(sockd); if (connect(sockd, p->ai_addr, p->ai_addrlen) == -1) { - struct timeval tv_timeout = {1, 0}; + struct timeval tv_timeout = {5, 0}; int selret; fd_set rw;