handler: localize client to avoid queue stalls

This commit is contained in:
Vaxry
2025-04-13 19:12:17 +01:00
parent 0075123ba9
commit 5f20698aa6
3 changed files with 6 additions and 19 deletions

View File

@@ -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;