|
|
@ -3268,14 +3268,9 @@ static void parse_method(sdata_t *sdata, stratum_instance_t *client, const int64 |
|
|
|
LOGNOTICE("Adding passthrough client %ld", client_id); |
|
|
|
LOGNOTICE("Adding passthrough client %ld", client_id); |
|
|
|
/* We need to inform the connector process that this client
|
|
|
|
/* We need to inform the connector process that this client
|
|
|
|
* is a passthrough and to manage its messages accordingly. |
|
|
|
* is a passthrough and to manage its messages accordingly. |
|
|
|
* Remove this instance since the client id may well be |
|
|
|
* The client_id stays on the list but we won't send anything |
|
|
|
* reused */ |
|
|
|
* to it since it's unauthorised. Set the flag just in case. */ |
|
|
|
ck_wlock(&sdata->instance_lock); |
|
|
|
client->authorised = false; |
|
|
|
if (likely(__instance_by_id(sdata, client_id))) |
|
|
|
|
|
|
|
HASH_DEL(sdata->stratum_instances, client); |
|
|
|
|
|
|
|
__kill_instance(client); |
|
|
|
|
|
|
|
ck_wunlock(&sdata->instance_lock); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
snprintf(buf, 255, "passthrough=%ld", client_id); |
|
|
|
snprintf(buf, 255, "passthrough=%ld", client_id); |
|
|
|
send_proc(client->ckp->connector, buf); |
|
|
|
send_proc(client->ckp->connector, buf); |
|
|
|
return; |
|
|
|
return; |
|
|
|