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