Commit 5eca3626 authored by Marc Gravell's avatar Marc Gravell

recognize connection resets by name

parent cc18e7fe
......@@ -268,7 +268,14 @@ public async Task RunClientAsync(IDuplexPipe pipe)
}
catch (ConnectionResetException) { }
catch (ObjectDisposedException) { }
catch (Exception ex) { fault = ex; }
catch (Exception ex)
{
if (ex.GetType().Name != nameof(ConnectionResetException))
{
// aspnet core has one too; swallow it by pattern
fault = ex; throw;
}
}
finally
{
RemoveClient(client);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment