#2549: Fix keepAlive in http client session

This commit is contained in:
Günter Obiltschnig 2019-01-15 20:57:50 +01:00
parent b543e074a1
commit 69fee5d296

View File

@ -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;
}