mirror of
https://github.com/pocoproject/poco.git
synced 2025-07-01 16:33:28 +02:00
GH #2549: Fix keepAlive in http client session: left-over _pRequestStream could mess up new request
This commit is contained in:
parent
69fee5d296
commit
be662f257a
@ -193,8 +193,9 @@ void HTTPClientSession::setKeepAliveTimeout(const Poco::Timespan& timeout)
|
|||||||
|
|
||||||
std::ostream& HTTPClientSession::sendRequest(HTTPRequest& request)
|
std::ostream& HTTPClientSession::sendRequest(HTTPRequest& request)
|
||||||
{
|
{
|
||||||
clearException();
|
_pRequestStream = 0;
|
||||||
_pResponseStream = 0;
|
_pResponseStream = 0;
|
||||||
|
clearException();
|
||||||
_responseReceived = false;
|
_responseReceived = false;
|
||||||
|
|
||||||
bool keepAlive = getKeepAlive();
|
bool keepAlive = getKeepAlive();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user