The issues affects UWP implementation of ClientWebSocket.
When ReceiveAsync call is pending and the connection is lost, System.Net.WebSockets.WinRTWebSocket.OnMessageReceived throws an exception with HRESULT 0x80072EFE ("The connection with the server was terminated abnormally") here:
https://github.com/dotnet/corefx/blob/master/src/System.Net.WebSockets.Client/src/System/Net/WebSockets/WinRTWebSocket.cs#L282
The exception is thrown on a background thread, which cannot be handled so it brings down the process.
The issues affects UWP implementation of
ClientWebSocket.When
ReceiveAsynccall is pending and the connection is lost,System.Net.WebSockets.WinRTWebSocket.OnMessageReceivedthrows an exception with HRESULT 0x80072EFE ("The connection with the server was terminated abnormally") here:https://github.com/dotnet/corefx/blob/master/src/System.Net.WebSockets.Client/src/System/Net/WebSockets/WinRTWebSocket.cs#L282
The exception is thrown on a background thread, which cannot be handled so it brings down the process.