1
0
Fork 0

Update: Do not reuse connections if they reached an error state

This commit is contained in:
Philipp Schafft 2022-03-07 11:36:33 +00:00
parent b9a16b92f0
commit 1963031af0
1 changed files with 1 additions and 1 deletions

View File

@ -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);