1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

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

This commit is contained in:
Con Kolivas 2012-08-01 20:05:30 +10:00
parent 7aa809ca24
commit d37d044fb7

View File

@ -2169,7 +2169,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; int curl_limit = opt_delaynet ? 5 : mining_threads * 4 / 3;
struct curl_ent *ce; struct curl_ent *ce;
mutex_lock(&pool->pool_lock); mutex_lock(&pool->pool_lock);