mirror of
https://github.com/oatpp/oatpp.git
synced 2025-04-18 19:00:23 +08:00
Added default thread number config value for AsyncHttpConnectionHandler
This commit is contained in:
parent
c18230a776
commit
b1147b5c5b
@ -56,6 +56,13 @@
|
||||
#define OATPP_THREAD_DISTRIBUTED_MEM_POOL_SHARDS_COUNT 10
|
||||
#endif
|
||||
|
||||
/**
|
||||
* AsyncHttpConnectionHandler default number of threads
|
||||
*/
|
||||
#ifndef OATPP_ASYNC_HTTP_CONNECTION_HANDLER_THREAD_NUM_DEFAULT
|
||||
#define OATPP_ASYNC_HTTP_CONNECTION_HANDLER_THREAD_NUM_DEFAULT 2
|
||||
#endif
|
||||
|
||||
/**
|
||||
* DISABLE logs level V
|
||||
*/
|
||||
|
@ -101,7 +101,8 @@ private:
|
||||
v_int32 m_threadCount;
|
||||
std::shared_ptr<Task>* m_tasks;
|
||||
public:
|
||||
AsyncHttpConnectionHandler(const std::shared_ptr<HttpRouter>& router, v_int32 threadCount = 2)
|
||||
AsyncHttpConnectionHandler(const std::shared_ptr<HttpRouter>& router,
|
||||
v_int32 threadCount = OATPP_ASYNC_HTTP_CONNECTION_HANDLER_THREAD_NUM_DEFAULT)
|
||||
: m_router(router)
|
||||
, m_errorHandler(handler::DefaultErrorHandler::createShared())
|
||||
, m_taskBalancer(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user