aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpsys.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-10 18:55:30 +0200
committerStefan Boberg <[email protected]>2021-09-10 18:55:30 +0200
commit49d09922716b216896fe60a92b1a126c9ba8c302 (patch)
treecd46ccc03b51969926306a2e8884c762474b9503 /zenhttp/httpsys.h
parentAdded MapContentTypeToString() helper function (diff)
downloadzen-49d09922716b216896fe60a92b1a126c9ba8c302.tar.xz
zen-49d09922716b216896fe60a92b1a126c9ba8c302.zip
Refactored HTTP request handling to scale better
The new logic simply reads the whole payload up front before dispatching to the endpoint handler. This increases concurrency as fewer threads will be blocked waiting for payloads Similar logic will be added for compact binary package negotiation and ultimately we want to support streaming payloads to a staging directory on disk rather than keeping them all in memory
Diffstat (limited to 'zenhttp/httpsys.h')
-rw-r--r--zenhttp/httpsys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenhttp/httpsys.h b/zenhttp/httpsys.h
index 7c4e303ce..02c96d9b5 100644
--- a/zenhttp/httpsys.h
+++ b/zenhttp/httpsys.h
@@ -52,7 +52,7 @@ private:
inline bool IsOk() const { return m_IsOk; }
void RegisterService(const char* Endpoint, HttpService& Service);
- void RemoveEndpoint(const char* Endpoint, HttpService& Service);
+ void UnregisterService(const char* Endpoint, HttpService& Service);
private:
bool m_IsOk = false;