From 69fee5d2969c540fdf7b7bc6c95d3abf09060f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Obiltschnig?= Date: Tue, 15 Jan 2019 20:57:50 +0100 Subject: [PATCH] #2549: Fix keepAlive in http client session --- Net/src/HTTPClientSession.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Net/src/HTTPClientSession.cpp b/Net/src/HTTPClientSession.cpp index 336a6b617..49b8d58d6 100644 --- a/Net/src/HTTPClientSession.cpp +++ b/Net/src/HTTPClientSession.cpp @@ -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; }