Skip to content

Commit

Permalink
No more stratum connection interruption.
Browse files Browse the repository at this point in the history
Increased timeout to 5 minutes to get rid of disconnects if there are no blocks in a network for 2 minutes.
Clean way to handle this issue instead of cheating on pool side with stupid job retransmission.
  • Loading branch information
sammy007 committed Feb 24, 2015
1 parent 977dad2 commit eb1f6c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ static void *stratum_thread(void *userdata) {
}
}

if (!stratum_socket_full(&stratum, 120)) {
if (!stratum_socket_full(&stratum, 300)) {
applog(LOG_ERR, "Stratum connection timed out");
s = NULL;
} else
Expand Down

0 comments on commit eb1f6c5

Please sign in to comment.