Browse Source

We must flag all clients to switch on a deadproxy regardless of whether there is room on the current proxy or not

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

4
src/stratifier.c

@ -1234,10 +1234,8 @@ static void dead_proxyid(sdata_t *sdata, const int64_t id, const int subid)
HASH_ITER(hh, sdata->stratum_instances, client, tmp) { HASH_ITER(hh, sdata->stratum_instances, client, tmp) {
if (client->proxyid != id || client->subproxyid != subid) if (client->proxyid != id || client->subproxyid != subid)
continue; continue;
if (headroom-- < 1)
continue;
reconnects++; reconnects++;
if (client->reconnect && hard <= SOMAXCONN / 2) { if (headroom-- > 0 && client->reconnect && hard <= SOMAXCONN / 2) {
hard++; hard++;
reconnect_client(sdata, client); reconnect_client(sdata, client);
} else } else

Loading…
Cancel
Save