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

Fix: Fixed HTTP/1.1 pipelineing

This commit is contained in:
Philipp Schafft 2018-06-18 10:31:13 +00:00
parent 33dcf24d21
commit b0c7da36a0

View File

@ -124,6 +124,16 @@ static inline void client_reuseconnection(client_t *client) {
client->con->send = NULL; client->con->send = NULL;
} }
if (client->con->readbufferlen) {
/* Aend... moorre paaiin.
* stealing putback buffer.
*/
con->readbuffer = client->con->readbuffer;
con->readbufferlen = client->con->readbufferlen;
client->con->readbuffer = NULL;
client->con->readbufferlen = 0;
}
client->reuse = ICECAST_REUSE_CLOSE; client->reuse = ICECAST_REUSE_CLOSE;
client_destroy(client); client_destroy(client);