Browse Source

Don't use TCP_NODELAY if opt_delaynet is enabled with stratum.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
891f88b601
  1. 1
      util.c

1
util.c

@ -1535,6 +1535,7 @@ static bool setup_stratum_curl(struct pool *pool)
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, curl_err_str); curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, curl_err_str);
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(curl, CURLOPT_URL, s); curl_easy_setopt(curl, CURLOPT_URL, s);
if (!opt_delaynet)
curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, 1); curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, 1);
curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_TRY); curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_TRY);
if (pool->rpc_proxy) { if (pool->rpc_proxy) {

Loading…
Cancel
Save