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:
parent
b9a16b92f0
commit
1963031af0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user