diff options
| author | Stefan Boberg <[email protected]> | 2021-09-10 18:55:30 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-10 18:55:30 +0200 |
| commit | 49d09922716b216896fe60a92b1a126c9ba8c302 (patch) | |
| tree | cd46ccc03b51969926306a2e8884c762474b9503 /zenhttp/httpsys.h | |
| parent | Added MapContentTypeToString() helper function (diff) | |
| download | zen-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.h | 2 |
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; |