mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Revert "Add more debugging to recv_line parse failure."
This reverts commit b615502b2b
.
Unnecessary.
This commit is contained in:
parent
412ef440b3
commit
06f7f52553
5
util.c
5
util.c
@ -1085,10 +1085,10 @@ char *recv_line(struct pool *pool)
|
|||||||
{
|
{
|
||||||
ssize_t len, buflen;
|
ssize_t len, buflen;
|
||||||
char *tok, *sret = NULL;
|
char *tok, *sret = NULL;
|
||||||
struct timeval rstart, now;
|
|
||||||
|
|
||||||
if (!strstr(pool->sockbuf, "\n")) {
|
if (!strstr(pool->sockbuf, "\n")) {
|
||||||
enum recv_ret ret = RECV_OK;
|
enum recv_ret ret = RECV_OK;
|
||||||
|
struct timeval rstart, now;
|
||||||
|
|
||||||
cgtime(&rstart);
|
cgtime(&rstart);
|
||||||
if (!socket_full(pool, true)) {
|
if (!socket_full(pool, true)) {
|
||||||
@ -1139,9 +1139,6 @@ char *recv_line(struct pool *pool)
|
|||||||
tok = strtok(pool->sockbuf, "\n");
|
tok = strtok(pool->sockbuf, "\n");
|
||||||
if (!tok) {
|
if (!tok) {
|
||||||
applog(LOG_DEBUG, "Failed to parse a \\n terminated string in recv_line");
|
applog(LOG_DEBUG, "Failed to parse a \\n terminated string in recv_line");
|
||||||
applog(LOG_DEBUG, "sockbuf: %s", pool->sockbuf);
|
|
||||||
applog(LOG_DEBUG, "Receive start time %d end time %d",
|
|
||||||
rstart.tv_sec, now.tv_sec);
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
sret = strdup(tok);
|
sret = strdup(tok);
|
||||||
|
Loading…
Reference in New Issue
Block a user