From b08f4bcb6950110509fe3e22e8a95f2bea174e7a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 4 Oct 2014 14:57:42 +1000 Subject: [PATCH] Drop clients lazily when the proxy is full --- src/stratifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stratifier.c b/src/stratifier.c index df99c571..14a30911 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -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,