diff options
| author | Stefan Boberg <[email protected]> | 2021-06-20 17:02:29 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-06-20 17:02:29 +0200 |
| commit | 4d31e4138c0df916bcb7d2ac84a0f1854cfd073b (patch) | |
| tree | 04d42f0c40be2d6ce6ff248e85035a896004a526 /zenserver/testing/launch.h | |
| parent | Improved some logging in test harness, added launcher test (diff) | |
| download | zen-4d31e4138c0df916bcb7d2ac84a0f1854cfd073b.tar.xz zen-4d31e4138c0df916bcb7d2ac84a0f1854cfd073b.zip | |
Launch sandbox directory is now dynamic and configured from the main server
Also added some debug logging
Diffstat (limited to 'zenserver/testing/launch.h')
| -rw-r--r-- | zenserver/testing/launch.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/zenserver/testing/launch.h b/zenserver/testing/launch.h index 5dd946eda..00f322624 100644 --- a/zenserver/testing/launch.h +++ b/zenserver/testing/launch.h @@ -5,6 +5,7 @@ #include <zencore/httpserver.h> #include <spdlog/spdlog.h> +#include <filesystem> namespace zen { @@ -16,16 +17,20 @@ class CasStore; class HttpLaunchService : public HttpService { public: - HttpLaunchService(CasStore& Store); + HttpLaunchService(CasStore& Store, const std::filesystem::path& SandboxBaseDir); ~HttpLaunchService(); virtual const char* BaseUri() const override; virtual void HandleRequest(HttpServerRequest& Request) override; private: - spdlog::logger m_Log; - HttpRequestRouter m_Router; - CasStore& m_CasStore; + spdlog::logger m_Log; + HttpRequestRouter m_Router; + CasStore& m_CasStore; + std::filesystem::path m_SandboxPath; + std::atomic<int> m_SandboxCount{0}; + + std::filesystem::path CreateNewSandbox(); }; } // namespace zen |