From b0c7da36a09a9cba46d0c920dedebb070d8415f4 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Mon, 18 Jun 2018 10:31:13 +0000 Subject: [PATCH] Fix: Fixed HTTP/1.1 pipelineing --- src/client.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/client.c b/src/client.c index 8753e37d..1eb2f289 100644 --- a/src/client.c +++ b/src/client.c @@ -124,6 +124,16 @@ static inline void client_reuseconnection(client_t *client) { 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_destroy(client);