We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c810d30 commit 07f19a5Copy full SHA for 07f19a5
1 file changed
src/SuperSocket.Kestrel/KestrelPipeConnection.cs
@@ -1,7 +1,9 @@
1
namespace SuperSocket.Kestrel;
2
3
using System;
4
+using System.IO;
5
using System.IO.Pipelines;
6
+using System.Net.Sockets;
7
using System.Threading;
8
using System.Threading.Tasks;
9
using Microsoft.AspNetCore.Connections;
@@ -73,6 +75,21 @@ public override async ValueTask SendAsync<TPackage>(IPackageEncoder<TPackage> pa
73
75
UpdateLastActiveTime();
74
76
}
77
78
+ protected override bool IsIgnorableException(Exception e)
79
+ {
80
+ if (e is IOException ioe && ioe.InnerException != null)
81
82
+ return IsIgnorableException(ioe.InnerException);
83
+ }
84
+
85
+ if (e is SocketException se)
86
87
+ return se.IsIgnorableSocketException();
88
89
90
+ return base.IsIgnorableException(e);
91
92
93
private void OnConnectionClosed()
94
{
95
Cancel();
0 commit comments