Hopefully catch failed connections

This commit is contained in:
Mike Nolan
2022-05-03 13:56:14 -05:00
parent 7886cc120c
commit 2aed769ac7
2 changed files with 8 additions and 3 deletions
@@ -872,8 +872,13 @@ namespace Tesses.WebServer
using (var r = token.Register(() => _listener.Stop())) {
while (!token.IsCancellationRequested)
{
try{
var socket=await _listener.AcceptTcpClientAsync();
await CommunicateHostAsync(socket).ConfigureAwait(false);
}catch(Exception ex)
{
_=ex;
}
}
}
}