Hopefully support multiple simultaneous connections
This commit is contained in:
parent
340c8ae946
commit
0b5eb9085c
|
@ -5,9 +5,9 @@
|
||||||
<PackageId>Tesses.WebServer</PackageId>
|
<PackageId>Tesses.WebServer</PackageId>
|
||||||
<Author>Mike Nolan</Author>
|
<Author>Mike Nolan</Author>
|
||||||
<Company>Tesses</Company>
|
<Company>Tesses</Company>
|
||||||
<Version>1.0.3.4</Version>
|
<Version>1.0.3.5</Version>
|
||||||
<AssemblyVersion>1.0.3.4</AssemblyVersion>
|
<AssemblyVersion>1.0.3.5</AssemblyVersion>
|
||||||
<FileVersion>1.0.3.4</FileVersion>
|
<FileVersion>1.0.3.5</FileVersion>
|
||||||
<Description>A TCP Listener HTTP(s) Server</Description>
|
<Description>A TCP Listener HTTP(s) Server</Description>
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
<PackageTags>HTTP, WebServer, Website</PackageTags>
|
<PackageTags>HTTP, WebServer, Website</PackageTags>
|
||||||
|
|
|
@ -874,7 +874,15 @@ namespace Tesses.WebServer
|
||||||
{
|
{
|
||||||
try{
|
try{
|
||||||
var socket=await _listener.AcceptTcpClientAsync();
|
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)
|
}catch(Exception ex)
|
||||||
{
|
{
|
||||||
_=ex;
|
_=ex;
|
||||||
|
|
Loading…
Reference in New Issue