mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Use 5 second timeout on sock full for now as a temporary workaround.
This commit is contained in:
parent
d851bf3d65
commit
d122a789ed
2
util.c
2
util.c
@ -906,7 +906,7 @@ static bool sock_full(SOCKETTYPE sock, bool wait)
|
|||||||
FD_SET(sock, &rd);
|
FD_SET(sock, &rd);
|
||||||
timeout.tv_usec = 0;
|
timeout.tv_usec = 0;
|
||||||
if (wait)
|
if (wait)
|
||||||
timeout.tv_sec = 60;
|
timeout.tv_sec = 5;
|
||||||
else
|
else
|
||||||
timeout.tv_sec = 0;
|
timeout.tv_sec = 0;
|
||||||
if (select(sock + 1, &rd, NULL, NULL, &timeout) > 0)
|
if (select(sock + 1, &rd, NULL, NULL, &timeout) > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user