diff --git a/src/Tye.Hosting/ProxyService.cs b/src/Tye.Hosting/ProxyService.cs index a8e29950..777dd005 100644 --- a/src/Tye.Hosting/ProxyService.cs +++ b/src/Tye.Hosting/ProxyService.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; +using System.IO; using System.IO.Pipelines; using System.Linq; using System.Net; @@ -11,7 +12,6 @@ using System.Net.Sockets; using System.Threading; using System.Threading.Tasks; using Bedrock.Framework; -using Tye.Hosting.Model; using Microsoft.AspNetCore.Connections; using Microsoft.AspNetCore.Connections.Features; using Microsoft.AspNetCore.Hosting; @@ -153,6 +153,10 @@ namespace Tye.Hosting { // Connection was reset } + catch (IOException) + { + // Reset can also appear as an IOException with an inner SocketException + } catch (OperationCanceledException ex) { if (!notificationFeature.ConnectionClosedRequested.IsCancellationRequested)