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:
parent
e1dcbfab15
commit
75a86fbf10
2
util.c
2
util.c
@ -1882,7 +1882,7 @@ bool subscribe_extranonce(struct pool *pool)
|
|||||||
|
|
||||||
/* Parse all data in the queue and anything left should be auth */
|
/* Parse all data in the queue and anything left should be auth */
|
||||||
while (42) {
|
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");
|
applog(LOG_DEBUG, "Timed out waiting for response extranonce.subscribe");
|
||||||
/* some pool doesnt send anything, so this is normal */
|
/* some pool doesnt send anything, so this is normal */
|
||||||
ret = true;
|
ret = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user