1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

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

View File

@ -309,7 +309,7 @@ void client_destroy(client_t *client)
avl_delete(global_client_list, client, NULL); avl_delete(global_client_list, client, NULL);
avl_tree_unlock(global_client_list); 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. */ /* only reuse the client if we reached the body's EOF. */
if (client_body_eof(client) == 1) { if (client_body_eof(client) == 1) {
client_reuseconnection(client); client_reuseconnection(client);