mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-27 12:10:49 +00:00
CC
This commit is contained in:
parent
91ff08452e
commit
6a07ee1506
@ -19,7 +19,7 @@ public:
|
||||
explicit HTTPServer(
|
||||
const Context & context,
|
||||
HTTPRequestHandlerFactoryPtr factory,
|
||||
UInt16 portNumber = 80,
|
||||
UInt16 port_number = 80,
|
||||
Poco::Net::HTTPServerParams::Ptr params = new Poco::Net::HTTPServerParams);
|
||||
|
||||
HTTPServer(
|
||||
@ -31,13 +31,13 @@ public:
|
||||
HTTPServer(
|
||||
const Context & context,
|
||||
HTTPRequestHandlerFactoryPtr factory,
|
||||
Poco::ThreadPool & threadPool,
|
||||
Poco::ThreadPool & thread_pool,
|
||||
const Poco::Net::ServerSocket & socket,
|
||||
Poco::Net::HTTPServerParams::Ptr params);
|
||||
|
||||
~HTTPServer() override;
|
||||
|
||||
void stopAll(bool abortCurrent = false);
|
||||
void stopAll(bool abort_current = false);
|
||||
|
||||
private:
|
||||
HTTPRequestHandlerFactoryPtr factory;
|
||||
|
@ -67,15 +67,15 @@ void HTTPServerConnection::run()
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Poco::Net::NoMessageException &)
|
||||
catch (const Poco::Net::NoMessageException &)
|
||||
{
|
||||
break;
|
||||
}
|
||||
catch (Poco::Net::MessageException &)
|
||||
catch (const Poco::Net::MessageException &)
|
||||
{
|
||||
sendErrorResponse(session, Poco::Net::HTTPResponse::HTTP_BAD_REQUEST);
|
||||
}
|
||||
catch (Poco::Exception &)
|
||||
catch (const Poco::Exception &)
|
||||
{
|
||||
if (session.networkException())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user