From 5a3183cf04bc2b5ebb575fb2aab8308f10c85c3f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 14 Dec 2015 10:21:08 +1100 Subject: [PATCH] Fix timeout in read_socket_line inappropriately running out --- src/ckpool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ckpool.c b/src/ckpool.c index 4b5e95f8..6e2f92d1 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -539,6 +539,7 @@ rewait: } tv_time(&now); diff = tvdiff(&now, &start); + copy_tv(&start, &now); *timeout -= diff; while (42) { char readbuf[PAGESIZE] = {};