Commit 9de3a264fc109c8973b954a7684b0fdd77b45049

Con Kolivas 2012-08-21T22:51:34

Increase max curls to number of mining threads + queue * 2, accounting for up and downstream comms.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index ae65103..c380a5b 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2219,7 +2219,7 @@ static void recruit_curl(struct pool *pool)
  * network delays/outages. */
 static struct curl_ent *pop_curl_entry(struct pool *pool)
 {
-	int curl_limit = opt_delaynet ? 5 : mining_threads * 4 / 3;
+	int curl_limit = opt_delaynet ? 5 : (mining_threads + opt_queue) * 2;
 	struct curl_ent *ce;
 
 	mutex_lock(&pool->pool_lock);