diff --git a/dbms/src/Server/Server.cpp b/dbms/src/Server/Server.cpp index 432aa3c1aec..fcd634af21b 100644 --- a/dbms/src/Server/Server.cpp +++ b/dbms/src/Server/Server.cpp @@ -625,7 +625,7 @@ class Server::TcpHttpServersHolder LOG_INFO(log, "tcp_port is closed because tls config is set"); } - /// TCP with SSL + /// TCP with SSL (Not supported yet) if (config.has("tcp_port_secure") && !security_config->hasTlsConfig()) { #if Poco_NetSSL_FOUND @@ -655,9 +655,8 @@ class Server::TcpHttpServersHolder LOG_INFO(log, "tcp_port_secure is closed because tls config is set"); } - /// TCP servers must be created. if (servers.empty()) - throw Exception("No 'tcp_port' and 'http_port' is specified in configuration file.", ErrorCodes::NO_ELEMENTS_IN_CONFIG); + LOG_WARNING(log, "No TCP and HTTP servers are created"); } catch (const Poco::Net::NetException & e) { @@ -678,10 +677,6 @@ class Server::TcpHttpServersHolder } } - if (servers.empty()) - throw Exception("No servers started (add valid listen_host and 'tcp_port' or 'http_port' to configuration file.)", - ErrorCodes::NO_ELEMENTS_IN_CONFIG); - for (auto & server : servers) server->start(); }