Merge branch 'hedged-requests' of github.com:Avogar/ClickHouse into hedged-requests

This commit is contained in:
Pavel Kruglov 2021-02-17 20:34:11 +03:00
commit c57daf2140

View File

@ -107,8 +107,7 @@ void Connection::prepare(const ConnectionTimeouts & timeouts)
/// the server know which host we want to talk with (single IP can process requests for multiple hosts using SNI). /// the server know which host we want to talk with (single IP can process requests for multiple hosts using SNI).
static_cast<Poco::Net::SecureStreamSocket *>(socket.get())->setPeerHostName(host); static_cast<Poco::Net::SecureStreamSocket *>(socket.get())->setPeerHostName(host);
#else #else
throw Exception{ throw Exception{"tcp_secure protocol is disabled because poco library was built without NetSSL support.", ErrorCodes::SUPPORT_IS_DISABLED};
"tcp_secure protocol is disabled because poco library was built without NetSSL support.", ErrorCodes::SUPPORT_IS_DISABLED};
#endif #endif
} }
else else