Drop clients lazily when the proxy is full
This commit is contained in:
parent
1b45079802
commit
b08f4bcb69
@ -1443,6 +1443,7 @@ static json_t *parse_subscribe(stratum_instance_t *client, int64_t client_id, js
|
||||
/* Create a new extranonce1 based on a uint64_t pointer */
|
||||
if (!new_enonce1(client)) {
|
||||
stratum_send_message(client, "Pool full of clients");
|
||||
client->reject = 2;
|
||||
return json_string("proxy full");
|
||||
}
|
||||
LOGINFO("Set new subscription %ld to new enonce1 %s", client->id,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user