From 1a5aa1874d8293871627b865707ffdd5fb06af25 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 29 Apr 2014 13:09:54 +1000 Subject: [PATCH] Be far more generous when waiting on read_socket_line --- src/libckpool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libckpool.c b/src/libckpool.c index 267137be..dbdd7bdf 100644 --- a/src/libckpool.c +++ b/src/libckpool.c @@ -494,7 +494,7 @@ int read_socket_line(connsock_t *cs) { char readbuf[PAGESIZE], *eom = NULL; size_t buflen = 0, bufofs = 0; - tv_t timeout = {5, 0}; + tv_t timeout = {60, 0}; int ret, bufsiz; fd_set rd; @@ -519,7 +519,7 @@ retry: FD_ZERO(&rd); FD_SET(cs->fd, &rd); - timeout.tv_sec = 1; + timeout.tv_sec = 5; timeout.tv_usec = 0; ret = select(cs->fd + 1, &rd, NULL, NULL, &timeout); if (ret < 0 && interrupted())