From a0493a7cde54e56ab29ef619766180640209d40d Mon Sep 17 00:00:00 2001 From: alesapin Date: Fri, 23 Nov 2018 12:23:14 +0300 Subject: [PATCH] Enable keepalive only with patched poco --- dbms/src/IO/HTTPCommon.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dbms/src/IO/HTTPCommon.cpp b/dbms/src/IO/HTTPCommon.cpp index fb901c4ffaf..c6b7e47225c 100644 --- a/dbms/src/IO/HTTPCommon.cpp +++ b/dbms/src/IO/HTTPCommon.cpp @@ -80,7 +80,11 @@ namespace session->setHost(DNSResolver::instance().resolveHost(host).toString()); session->setPort(port); + + /// doesn't work properly without patch +#if POCO_CLICKHOUSE_PATCH session->setKeepAlive(keep_alive); +#endif return session; }