1
0
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:
Philipp Schafft 2018-06-18 10:27:15 +00:00
parent 01c35e2c41
commit 33dcf24d21

View File

@ -140,9 +140,12 @@ void client_destroy(client_t *client)
return; return;
if (client->reuse != ICECAST_REUSE_CLOSE) { 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); client_reuseconnection(client);
return; 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
* and may of disappeared after auth completes */ * and may of disappeared after auth completes */