aboutsummaryrefslogtreecommitdiff
path: root/zenserver/testing/launch.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-06-20 17:02:29 +0200
committerStefan Boberg <[email protected]>2021-06-20 17:02:29 +0200
commit4d31e4138c0df916bcb7d2ac84a0f1854cfd073b (patch)
tree04d42f0c40be2d6ce6ff248e85035a896004a526 /zenserver/testing/launch.h
parentImproved some logging in test harness, added launcher test (diff)
downloadzen-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.h13
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