I create a persistent connection to a http server with HTTPClientSession object. When I receive the http response the isteam state change to badbit and then I call the HTTPpClientSession.reset() function to close current http connection.
I send the next http request with a new connection.But when I receive the http response I find I have received the residual http response correspond to the last request and the HTTPClientSession.receiveResponse ()function throw a exception, the exception.what() is "Malformed message: No HTTP response header".
I search the reason and find the residual http response is in the HTTPSession._pBuffer member variable.
So my question is why not emptied the _pBuffer through HTTPClientSession.reset() function in POCO completion. What should I do to solve the question?