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

@@ -11,9 +11,6 @@ class CServerHandler : public Pistache::Http::Handler {
HTTP_PROTOTYPE(CServerHandler)
void init();
void finish();
void onRequest(const Pistache::Http::Request& req, Pistache::Http::ResponseWriter response);
void onTimeout(const Pistache::Http::Request& request, Pistache::Http::ResponseWriter response);
@@ -36,6 +33,4 @@ class CServerHandler : public Pistache::Http::Handler {
std::string token = "";
std::string error = "";
};
Pistache::Http::Experimental::Client* m_client = nullptr;
};