Commit d37d044fb7b34e437e34315f5ae5e3cc443c289a

Con Kolivas 2012-08-01T20:05:30

Add some headroom to the number of curls available per pool to allow for longpoll and sendwork curls.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 0de93f0..0cc3fc0 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2169,7 +2169,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;
+	int curl_limit = opt_delaynet ? 5 : mining_threads * 4 / 3;
 	struct curl_ent *ce;
 
 	mutex_lock(&pool->pool_lock);