mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Fix: Only reuse client IF we reached the end of it's body
This commit is contained in:
parent
01c35e2c41
commit
33dcf24d21
@ -140,8 +140,11 @@ void client_destroy(client_t *client)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (client->reuse != ICECAST_REUSE_CLOSE) {
|
if (client->reuse != ICECAST_REUSE_CLOSE) {
|
||||||
client_reuseconnection(client);
|
/* only reuse the client if we reached the body's EOF. */
|
||||||
return;
|
if (client_body_eof(client) == 1) {
|
||||||
|
client_reuseconnection(client);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* release the buffer now, as the buffer could be on the source queue
|
/* release the buffer now, as the buffer could be on the source queue
|
||||||
|
Loading…
Reference in New Issue
Block a user