Skip to content
代码片段 群组 项目
未验证 提交 07ef2d88 编辑于 作者: Justin Kotalik's avatar Justin Kotalik 提交者: GitHub
浏览文件

Remove misleading websocket error log (#7249)

上级 25389acd
No related branches found
No related tags found
无相关合并请求
......@@ -86,14 +86,18 @@ OUT_OF_PROCESS_APPLICATION::SetWebsocketStatus(
// the websocket module may still not be enabled.
PCWSTR pszTempWebsocketValue;
DWORD cbLength;
if (FAILED_LOG(pHttpContext->GetServerVariable("WEBSOCKET_VERSION", &pszTempWebsocketValue, &cbLength)))
HRESULT hr = pHttpContext->GetServerVariable("WEBSOCKET_VERSION", &pszTempWebsocketValue, &cbLength);
if (SUCCEEDED(hr))
{
m_fWebSocketSupported = WEBSOCKET_STATUS::WEBSOCKET_NOT_SUPPORTED;
m_fWebSocketSupported = WEBSOCKET_STATUS::WEBSOCKET_SUPPORTED;
}
else
{
m_fWebSocketSupported = WEBSOCKET_STATUS::WEBSOCKET_SUPPORTED;
m_fWebSocketSupported = WEBSOCKET_STATUS::WEBSOCKET_NOT_SUPPORTED;
if (hr != HRESULT_FROM_WIN32(ERROR_INVALID_INDEX))
{
LOG_IF_FAILED(hr);
}
}
}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册