We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31dcf23 + 793e66d commit a381bd3Copy full SHA for a381bd3
src/JsonRpc/InputHandler.cs
@@ -4,6 +4,7 @@
4
using System.IO;
5
using System.IO.Pipelines;
6
using System.Linq;
7
+using System.Net.Sockets;
8
using System.Reactive;
9
using System.Reactive.Concurrency;
10
using System.Reactive.Disposables;
@@ -144,9 +145,14 @@ public void Start()
144
145
{
146
await ProcessInputStream(_stopProcessing.Token).ConfigureAwait(false);
147
}
148
+ catch (IOException e)
149
+ when (e.InnerException is SocketException { SocketErrorCode: SocketError.ConnectionReset })
150
+ {
151
+ _logger.LogInformation(e, "Connection reset by client.");
152
+ }
153
catch (Exception e)
154
- _logger.LogCritical(e, "unhandled exception");
155
+ _logger.LogCritical(e, "Unhandled exception.");
156
157
158
).Subscribe(_inputActive)
0 commit comments