diff options
| author | Dan Engelbrecht <[email protected]> | 2023-05-11 10:52:14 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-11 10:52:14 +0200 |
| commit | 0049b60faea2b14f77a263b326a415c94cf4bad3 (patch) | |
| tree | 44c50579f116d53668123224bd26c218938fed83 /src/zenhttp/include | |
| parent | ZEN_LOG_SCOPE compile fix (diff) | |
| download | zen-0049b60faea2b14f77a263b326a415c94cf4bad3.tar.xz zen-0049b60faea2b14f77a263b326a415c94cf4bad3.zip | |
Close down http server gracefully when exiting even while requests are still being processed (#290)
* Close down http server gracefully when exiting even while requests are still being processed
Diffstat (limited to 'src/zenhttp/include')
| -rw-r--r-- | src/zenhttp/include/zenhttp/httpserver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zenhttp/include/zenhttp/httpserver.h b/src/zenhttp/include/zenhttp/httpserver.h index 3b9fa50b4..dd66b1fe7 100644 --- a/src/zenhttp/include/zenhttp/httpserver.h +++ b/src/zenhttp/include/zenhttp/httpserver.h @@ -177,6 +177,7 @@ public: virtual int Initialize(int BasePort) = 0; virtual void Run(bool IsInteractiveSession) = 0; virtual void RequestExit() = 0; + virtual void Close() = 0; }; Ref<HttpServer> CreateHttpServer(std::string_view ServerClass); |