Suppress web socket closing without handshake
This commit is contained in:
parent
a13f3f4765
commit
c835288e84
|
|
@ -182,6 +182,11 @@ namespace Microsoft.AspNetCore.Http.Connections.Internal.Transports
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (WebSocketException ex) when (ex.ErrorCode == 997)
|
||||||
|
{
|
||||||
|
// The remote party closed the WebSocket connection without completing the close handshake
|
||||||
|
// Don't long an error for this exception
|
||||||
|
}
|
||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
{
|
{
|
||||||
// Ignore aborts, don't treat them like transport errors
|
// Ignore aborts, don't treat them like transport errors
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue