Browse Source

Count reconnecting clients as part of the headroom consumed

master
Con Kolivas 10 years ago
parent
commit
cd342551a8
  1. 4
      src/stratifier.c

4
src/stratifier.c

@ -1244,9 +1244,9 @@ static void reassess_headroom(sdata_t *sdata, const proxy_t *proxy)
ck_rlock(&sdata->instance_lock); ck_rlock(&sdata->instance_lock);
HASH_ITER(hh, sdata->stratum_instances, client, tmpclient) { HASH_ITER(hh, sdata->stratum_instances, client, tmpclient) {
if (client->dropped || client->reconnect) if (client->dropped)
continue; continue;
if (client->proxyid != proxy->id) if (client->reconnect || client->proxyid != proxy->id)
headroom--; headroom--;
} }
ck_runlock(&sdata->instance_lock); ck_runlock(&sdata->instance_lock);

Loading…
Cancel
Save