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,9 +140,12 @@ void client_destroy(client_t *client)
|
||||
return;
|
||||
|
||||
if (client->reuse != ICECAST_REUSE_CLOSE) {
|
||||
/* only reuse the client if we reached the body's EOF. */
|
||||
if (client_body_eof(client) == 1) {
|
||||
client_reuseconnection(client);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* release the buffer now, as the buffer could be on the source queue
|
||||
* and may of disappeared after auth completes */
|
||||
|
Loading…
Reference in New Issue
Block a user