1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Set extranonce.subscribe timeout to 2sec

This commit is contained in:
Elbandi 2014-04-24 20:57:09 +02:00
parent e1dcbfab15
commit 75a86fbf10

2
util.c
View File

@ -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;