mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Revert "Some networks can take a long time to resolve so go back to 60 second timeouts instead of 15."
This reverts commit c86a670ce6
.
This changed more than just the timeout.
This commit is contained in:
parent
f818c3f643
commit
1832b20c40
8
util.c
8
util.c
@ -319,7 +319,13 @@ json_t *json_rpc_call(CURL *curl, const char *url,
|
|||||||
struct header_info hi = { };
|
struct header_info hi = { };
|
||||||
bool probing = false;
|
bool probing = false;
|
||||||
|
|
||||||
/* it is assumed that 'curl' is freshly [re]initialised at this pt */
|
/* it is assumed that 'curl' is freshly [re]initialized at this pt */
|
||||||
|
|
||||||
|
if (probe) {
|
||||||
|
probing = !pool->probed;
|
||||||
|
/* Probe for only 15 seconds */
|
||||||
|
timeout = 15;
|
||||||
|
}
|
||||||
curl_easy_setopt(curl, CURLOPT_TIMEOUT, timeout);
|
curl_easy_setopt(curl, CURLOPT_TIMEOUT, timeout);
|
||||||
|
|
||||||
#if 0 /* Disable curl debugging since it spews to stderr */
|
#if 0 /* Disable curl debugging since it spews to stderr */
|
||||||
|
Loading…
Reference in New Issue
Block a user