mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-05 02:32:18 +00:00
API always report failed send() replies
This commit is contained in:
parent
42a01e7b37
commit
f56a0fb719
4
api.c
4
api.c
@ -3433,13 +3433,11 @@ static void send_result(struct io_data *io_data, SOCKETTYPE c, bool isjson)
|
|||||||
// ignore failure - it's closed immediately anyway
|
// ignore failure - it's closed immediately anyway
|
||||||
n = send(c, buf, len+1, 0);
|
n = send(c, buf, len+1, 0);
|
||||||
|
|
||||||
if (opt_debug) {
|
|
||||||
if (SOCKETFAIL(n))
|
if (SOCKETFAIL(n))
|
||||||
applog(LOG_DEBUG, "API: send failed: %s", SOCKERRMSG);
|
applog(LOG_WARNING, "API: send failed: %s", SOCKERRMSG);
|
||||||
else
|
else
|
||||||
applog(LOG_DEBUG, "API: sent %d", n);
|
applog(LOG_DEBUG, "API: sent %d", n);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static void tidyup(__maybe_unused void *arg)
|
static void tidyup(__maybe_unused void *arg)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user