ENdpoint
This commit is contained in:
parent
f0eab4410a
commit
e32b51d6e6
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
|
|||
|
||||
ResetFeatureCollection();
|
||||
|
||||
if (_server.IsWebSocketAvailible(pInProcessHandler))
|
||||
if (!_server.IsWebSocketAvailible(pInProcessHandler))
|
||||
{
|
||||
_currentIHttpUpgradeFeature = null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue