This commit is contained in:
Jay D Dee
2017-11-20 21:19:15 -05:00
parent ab39e88318
commit 6d1361c87f
46 changed files with 6314 additions and 141 deletions

4
util.c
View File

@@ -1069,7 +1069,7 @@ char *stratum_recv_line(struct stratum_ctx *sctx)
time(&rstart);
if (!socket_full(sctx->sock, 60)) {
applog(LOG_ERR, "stratum_recv_line timed out");
applog(LOG_WARNING, "stratum_recv_line timed out");
goto out;
}
do {
@@ -1092,7 +1092,7 @@ char *stratum_recv_line(struct stratum_ctx *sctx)
} while (time(NULL) - rstart < 60 && !strstr(sctx->sockbuf, "\n"));
if (!ret) {
applog(LOG_ERR, "stratum_recv_line failed");
applog(LOG_WARNING, "stratum_recv_line failed");
goto out;
}
}