Enable keepalive only with patched poco

This commit is contained in:
alesapin 2018-11-23 12:23:14 +03:00
parent d31d30c8e1
commit a0493a7cde

View File

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