Update Server.cs

This commit is contained in:
Gui.H 2021-06-17 16:58:50 +08:00 committed by GitHub
parent a7b6be89ee
commit 33c7a624c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,6 +147,7 @@ namespace FastTunnel.Core.Server
SocketAsyncEventArgs readEventArgs = m_readWritePool.Pop();
((AsyncUserToken)readEventArgs.UserToken).Socket = e.AcceptSocket;
((AsyncUserToken)readEventArgs.UserToken).MassgeTemp = null;
((AsyncUserToken)readEventArgs.UserToken).Recived = null;
Console.WriteLine("ReceiveAsync");
// As soon as the client is connected, post a receive to the connection
@ -229,7 +230,7 @@ namespace FastTunnel.Core.Server
}
else
{
// ÊÍ·Å×ÊÔ´
// ÊÍ·Å×ÊÔ´
release(e);
return;
}
@ -303,4 +304,4 @@ namespace FastTunnel.Core.Server
m_maxNumberAcceptedClients.Release();
}
}
}
}