From d0d40b36b306236428a764349dbff98d38cf7dbd Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Tue, 17 Mar 2026 22:57:20 +0100 Subject: zen hub port reuse (#850) - Feature: Added `--allow-port-probing` option to control whether zenserver searches for a free port on startup (default: true, automatically false when --dedicated is set) - Feature: Added new hub options for controlling provisioned storage server instances: - `--hub-instance-http` - HTTP server implementation for instances (asio/httpsys) - `--hub-instance-http-threads` - Number of HTTP connection threads per instance - `--hub-instance-corelimit` - Limit CPU concurrency per instance - Improvement: Hub now manages a deterministic port pool for provisioned instances allowing reuse of unused ports --- src/zenutil/include/zenutil/zenserverprocess.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/zenutil') diff --git a/src/zenutil/include/zenutil/zenserverprocess.h b/src/zenutil/include/zenutil/zenserverprocess.h index 2f76f0d6c..101b078e9 100644 --- a/src/zenutil/include/zenutil/zenserverprocess.h +++ b/src/zenutil/include/zenutil/zenserverprocess.h @@ -151,6 +151,11 @@ struct ZenServerInstance return GetBasePort(); } + inline void SpawnServerAndWaitUntilReady(uint16_t BasePort, std::string_view AdditionalServerArgs = std::string_view()) + { + SpawnServer(BasePort, AdditionalServerArgs, /* WaitTimeoutMs */ 100'000); + } + inline void SpawnServer(int BasePort, std::string_view AdditionalServerArgs = std::string_view()) { SpawnServer(BasePort, AdditionalServerArgs, /* WaitTimeoutMs */ 0); -- cgit v1.2.3