mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Make curl use a fresh connection if the json rpc call fails for any reason in case curl is relying on dead persistent connections.
This commit is contained in:
parent
40ea56ee6e
commit
638c8c526f
1
util.c
1
util.c
@ -432,6 +432,7 @@ err_out:
|
|||||||
curl_easy_reset(curl);
|
curl_easy_reset(curl);
|
||||||
if (!successful_connect)
|
if (!successful_connect)
|
||||||
applog(LOG_DEBUG, "Failed to connect in json_rpc_call");
|
applog(LOG_DEBUG, "Failed to connect in json_rpc_call");
|
||||||
|
curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, 1);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user