mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
#2549: Fix keepAlive in http client session
This commit is contained in:
parent
b543e074a1
commit
69fee5d296
@ -354,13 +354,14 @@ int HTTPClientSession::write(const char* buffer, std::streamsize length)
|
|||||||
_reconnect = false;
|
_reconnect = false;
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
catch (NetException&)
|
catch (IOException&)
|
||||||
{
|
{
|
||||||
if (_reconnect)
|
if (_reconnect)
|
||||||
{
|
{
|
||||||
close();
|
close();
|
||||||
reconnect();
|
reconnect();
|
||||||
int rc = HTTPSession::write(buffer, length);
|
int rc = HTTPSession::write(buffer, length);
|
||||||
|
clearException();
|
||||||
_reconnect = false;
|
_reconnect = false;
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user