From bba99bd88ca8eeb4fed76b964a8374675465f20e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 7 Mar 2013 13:39:00 +1100 Subject: [PATCH] Show mechanism of stratum interruption if select times out. --- cgminer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cgminer.c b/cgminer.c index d7f84396..6557d828 100644 --- a/cgminer.c +++ b/cgminer.c @@ -4881,9 +4881,10 @@ static void *stratum_thread(void *userdata) * every minute so if we fail to receive any for 90 seconds we * assume the connection has been dropped and treat this pool * as dead */ - if (!sock_full(pool) && select(pool->sock + 1, &rd, NULL, NULL, &timeout) < 1) + if (!sock_full(pool) && select(pool->sock + 1, &rd, NULL, NULL, &timeout) < 1) { + applog(LOG_DEBUG, "Stratum select timeout on pool %d", pool->pool_no); s = NULL; - else + } else s = recv_line(pool); if (!s) { applog(LOG_NOTICE, "Stratum connection to pool %d interrupted", pool->pool_no);