Browse Source

Send X-Minimum-Wait header on longpolls, to explicitly inform pools we will handle a response with no delay

Luke Dashjr 13 years ago
parent
commit
37b1512ffb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      util.c

+ 4 - 0
util.c

@@ -326,6 +326,10 @@ json_t *json_rpc_call(CURL *curl, const char *url,
 	headers = curl_slist_append(headers,
 		"X-Mining-Extensions: longpoll midstate rollntime submitold");
 
+	if (longpoll)
+		headers = curl_slist_append(headers,
+			"X-Minimum-Wait: 0");
+
 	if (likely(global_hashrate)) {
 		char ghashrate[255];