1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-14 16:58:05 +00:00

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

This commit is contained in:
Con Kolivas 2012-08-21 22:51:34 +10:00
parent 3ab5dba67e
commit 9de3a264fc

View File

@ -2219,7 +2219,7 @@ static void recruit_curl(struct pool *pool)
* network delays/outages. */ * network delays/outages. */
static struct curl_ent *pop_curl_entry(struct pool *pool) 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; struct curl_ent *ce;
mutex_lock(&pool->pool_lock); mutex_lock(&pool->pool_lock);