diff options
| author | Stefan Boberg <[email protected]> | 2021-09-10 22:05:32 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-10 22:05:32 +0200 |
| commit | f181ee026f90d37abe536779a7c0fe9f24abe925 (patch) | |
| tree | 1be31679f9e8a0c290c546f9a2fa7000f0499907 /zenhttp/httpsys.h | |
| parent | Merge branch 'cbpackage-update' of https://github.com/EpicGames/zen into cbpa... (diff) | |
| download | zen-f181ee026f90d37abe536779a7c0fe9f24abe925.tar.xz zen-f181ee026f90d37abe536779a7c0fe9f24abe925.zip | |
Improved error reporting, tweaked request buffer size and added explicit cleanup of http API resources
Diffstat (limited to 'zenhttp/httpsys.h')
| -rw-r--r-- | zenhttp/httpsys.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zenhttp/httpsys.h b/zenhttp/httpsys.h index 02c96d9b5..9149b54d6 100644 --- a/zenhttp/httpsys.h +++ b/zenhttp/httpsys.h @@ -44,6 +44,7 @@ public: private: void Initialize(const wchar_t* UrlPath); + void Cleanup(); void StartServer(); void OnHandlingRequest(); @@ -64,6 +65,7 @@ private: HTTP_URL_GROUP_ID m_HttpUrlGroupId = 0; HANDLE m_RequestQueueHandle = 0; std::atomic_int32_t m_PendingRequests{0}; + std::atomic<int32_t> m_IsShuttingDown{0}; int32_t m_MinPendingRequests = 16; int32_t m_MaxPendingRequests = 128; Event m_ShutdownEvent; |