mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +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;
|
||||
return rc;
|
||||
}
|
||||
catch (NetException&)
|
||||
catch (IOException&)
|
||||
{
|
||||
if (_reconnect)
|
||||
{
|
||||
close();
|
||||
reconnect();
|
||||
int rc = HTTPSession::write(buffer, length);
|
||||
clearException();
|
||||
_reconnect = false;
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user