#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; _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;
} }