handler: localize client to avoid queue stalls
This commit is contained in:
@@ -86,7 +86,6 @@ int main(int argc, char** argv, char** envp) {
|
||||
opts.maxRequestSize(g_pConfig->m_config.max_request_size);
|
||||
endpoint->init(opts);
|
||||
auto handler = Pistache::Http::make_handler<CServerHandler>();
|
||||
handler->init();
|
||||
endpoint->setHandler(handler);
|
||||
|
||||
endpoint->serveThreaded();
|
||||
@@ -115,7 +114,6 @@ int main(int argc, char** argv, char** envp) {
|
||||
|
||||
Debug::log(LOG, "Shutting down, bye!");
|
||||
|
||||
handler->finish();
|
||||
endpoint->shutdown();
|
||||
endpoint = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user