From 891f88b601e0c6a157a9a0be28965521da2d5be3 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 6 May 2013 16:54:55 +1000 Subject: [PATCH] Don't use TCP_NODELAY if opt_delaynet is enabled with stratum. --- util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index 31acc14e..5afccf88 100644 --- a/util.c +++ b/util.c @@ -1535,7 +1535,8 @@ static bool setup_stratum_curl(struct pool *pool) curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, curl_err_str); curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); curl_easy_setopt(curl, CURLOPT_URL, s); - curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, 1); + if (!opt_delaynet) + curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, 1); curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_TRY); if (pool->rpc_proxy) { curl_easy_setopt(curl, CURLOPT_PROXY, pool->rpc_proxy);