This commit is contained in:
Pavel Krymets 2018-04-09 16:06:39 -07:00
parent f0eab4410a
commit e32b51d6e6
3 changed files with 7 additions and 7 deletions

View File

@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
{
if (LocalIpAddress == null)
{
InitializeRemoteEndpoint();
InitializeLocalEndpoint();
}
return LocalIpAddress;
}
@ -56,7 +56,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
{
if (LocalIpAddress == null)
{
InitializeRemoteEndpoint();
InitializeLocalEndpoint();
}
return LocalPort;

View File

@ -111,7 +111,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
ResetFeatureCollection();
if (_server.IsWebSocketAvailible(pInProcessHandler))
if (!_server.IsWebSocketAvailible(pInProcessHandler))
{
_currentIHttpUpgradeFeature = null;
}

View File

@ -194,7 +194,7 @@ http_read_request_bytes(
_Out_ BOOL* pfCompletionPending
)
{
HRESULT hr;
HRESULT hr = S_OK;
if (pInProcessHandler == NULL)
{
@ -206,7 +206,7 @@ http_read_request_bytes(
}
IHttpRequest *pHttpRequest = (IHttpRequest*)pInProcessHandler->QueryHttpContext()->GetRequest();
// Check if there is anything to read
if (pHttpRequest->GetRemainingEntityBytes() > 0)
{
BOOL fAsync = TRUE;
@ -225,8 +225,8 @@ http_read_request_bytes(
}
else
{
// nothing to read
hr = S_OK;
*pdwBytesReceived = 0;
*pfCompletionPending = FALSE;
}
return hr;