This commit is contained in:
James Newton-King 2018-04-15 18:16:23 +12:00
parent c835288e84
commit 9d033aa9f9
No known key found for this signature in database
GPG Key ID: 0A66B2F456BF5526
1 changed files with 4 additions and 1 deletions

View File

@ -182,7 +182,10 @@ namespace Microsoft.AspNetCore.Http.Connections.Internal.Transports
}
}
}
catch (WebSocketException ex) when (ex.ErrorCode == 997)
catch (WebSocketException ex) when (
ex.ErrorCode == 997 ||
// Sometimes this error is raised without the ErrorCode
ex.Message == "The remote party closed the WebSocket connection without completing the close handshake.")
{
// The remote party closed the WebSocket connection without completing the close handshake
// Don't long an error for this exception