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.
1 parent 88dfe8e commit f4fc7baCopy full SHA for f4fc7ba
1 file changed
src/FubarDev.FtpServer.Abstractions/Commands/DefaultFtpCommandDispatcher.cs
@@ -7,6 +7,7 @@
7
using System.ComponentModel.DataAnnotations;
8
using System.Diagnostics;
9
using System.Linq;
10
+using System.Net.Sockets;
11
using System.Threading;
12
using System.Threading.Tasks;
13
@@ -190,6 +191,9 @@ private async Task ExecuteCommandAsync(
190
191
_logger?.LogWarning(validationException.Message);
192
break;
193
194
+#if !NETSTANDARD1_3
195
+ case SocketException se when se.ErrorCode == (int)SocketError.ConnectionAborted:
196
+#endif
197
case OperationCanceledException _:
198
response = new FtpResponse(426, localizationFeature.Catalog.GetString("Connection closed; transfer aborted."));
199
Debug.WriteLine($"Command {command} cancelled with response {response}");
0 commit comments