From 75a86fbf1049c707e2a67b4661427551c99f44d3 Mon Sep 17 00:00:00 2001 From: Elbandi Date: Thu, 24 Apr 2014 20:57:09 +0200 Subject: [PATCH] Set extranonce.subscribe timeout to 2sec --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 8f0bcbf5..ce9c122a 100644 --- a/util.c +++ b/util.c @@ -1882,7 +1882,7 @@ bool subscribe_extranonce(struct pool *pool) /* Parse all data in the queue and anything left should be auth */ while (42) { - if (!socket_full(pool, DEFAULT_SOCKWAIT)) { + if (!socket_full(pool, DEFAULT_SOCKWAIT / 30)) { applog(LOG_DEBUG, "Timed out waiting for response extranonce.subscribe"); /* some pool doesnt send anything, so this is normal */ ret = true;