Browse Source

Force a reconnect send to clients that have been given the reconnect flag already and are requested to reconnect again

master
Con Kolivas 10 years ago
parent
commit
234f76f8e5
  1. 1
      src/generator.c
  2. 3
      src/stratifier.c

1
src/generator.c

@ -1384,7 +1384,6 @@ static void submit_share(gdata_t *gdata, json_t *val)
if (!proxi->alive) {
LOGNOTICE("Client %"PRId64" attempting to send shares to dead proxy %d:%d, dropping",
client_id, id, subid);
send_stratifier_deadproxy(ckp, id, subid);
stratifier_reconnect_client(ckp, client_id);
return json_decref(val);
}

3
src/stratifier.c

@ -2209,7 +2209,8 @@ static void lazy_reconnect_client(sdata_t *sdata, stratum_instance_t *client)
if (!client->reconnect) {
LOGNOTICE("Flagging client %"PRId64, client->id);
client->reconnect = true;
}
} else /* Already been flagged, force the send */
reconnect_client(sdata, client);
}
}

Loading…
Cancel
Save