Hopefully support multiple simultaneous connections

This commit is contained in:
Mike Nolan
2022-07-06 16:19:40 -05:00
parent 340c8ae946
commit 0b5eb9085c
2 changed files with 12 additions and 4 deletions
+9 -1
View File
@@ -874,7 +874,15 @@ namespace Tesses.WebServer
{
try{
var socket=await _listener.AcceptTcpClientAsync();
await CommunicateHostAsync(socket).ConfigureAwait(false);
Task.Factory.StartNew(async()=>{
try{
await CommunicateHostAsync(socket);
}catch(Exception ex)
{
_=ex;
}
}).Wait(0);
}catch(Exception ex)
{
_=ex;