From 1963031af0b3fb357827542e50d20199adf2e2f3 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Mon, 7 Mar 2022 11:36:33 +0000 Subject: [PATCH] Update: Do not reuse connections if they reached an error state --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index 7edb5ada..9239a4ac 100644 --- a/src/client.c +++ b/src/client.c @@ -309,7 +309,7 @@ void client_destroy(client_t *client) avl_delete(global_client_list, client, NULL); avl_tree_unlock(global_client_list); - if (client->reuse != ICECAST_REUSE_CLOSE) { + if (client->reuse != ICECAST_REUSE_CLOSE && !client->con->error) { /* only reuse the client if we reached the body's EOF. */ if (client_body_eof(client) == 1) { client_reuseconnection(client);