aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/servers/httpsys.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-10-13 09:53:36 +0200
committerGitHub Enterprise <[email protected]>2025-10-13 09:53:36 +0200
commit6a1ad301c7b16b5c7361da68cf3e04d6efbfa5a9 (patch)
tree03edda97ec3ba2ddfe47e01fd840dafbb86f91fa /src/zenhttp/servers/httpsys.cpp
parentblock reference couting copy support windows (#564) (diff)
downloadzen-6a1ad301c7b16b5c7361da68cf3e04d6efbfa5a9.tar.xz
zen-6a1ad301c7b16b5c7361da68cf3e04d6efbfa5a9.zip
hide http.sys options when unavailable (#568)
Diffstat (limited to 'src/zenhttp/servers/httpsys.cpp')
-rw-r--r--src/zenhttp/servers/httpsys.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/zenhttp/servers/httpsys.cpp b/src/zenhttp/servers/httpsys.cpp
index c83675f2c..0be53ffee 100644
--- a/src/zenhttp/servers/httpsys.cpp
+++ b/src/zenhttp/servers/httpsys.cpp
@@ -1013,7 +1013,7 @@ HttpSysServer::InitializeServer(int BasePort)
{
ZEN_ERROR("Failed to create server session for '{}': {:#x}", WideToUtf8(WildcardUrlPath), Result);
- return BasePort;
+ return 0;
}
Result = HttpCreateUrlGroup(m_HttpSessionId, &m_HttpUrlGroupId, 0);
@@ -1022,7 +1022,7 @@ HttpSysServer::InitializeServer(int BasePort)
{
ZEN_ERROR("Failed to create URL group for '{}': {:#x}", WideToUtf8(WildcardUrlPath), Result);
- return BasePort;
+ return 0;
}
m_BaseUris.clear();
@@ -1137,7 +1137,7 @@ HttpSysServer::InitializeServer(int BasePort)
{
ZEN_ERROR("Failed to create request queue for '{}': {:#x}", WideToUtf8(m_BaseUris.front()), Result);
- return EffectivePort;
+ return 0;
}
HttpBindingInfo.Flags.Present = 1;
@@ -1149,7 +1149,7 @@ HttpSysServer::InitializeServer(int BasePort)
{
ZEN_ERROR("Failed to set server binding property for '{}': {:#x}", WideToUtf8(m_BaseUris.front()), Result);
- return EffectivePort;
+ return 0;
}
// Configure rejection method. Default is to drop the connection, it's better if we
@@ -1191,6 +1191,8 @@ HttpSysServer::InitializeServer(int BasePort)
if (ErrorCode)
{
ZEN_ERROR("Failed to create IOCP for '{}': {}", WideToUtf8(m_BaseUris.front()), ErrorCode.message());
+
+ return 0;
}
else
{