fix: Telepathy forgot to set socket options for accepted clients on the server

This commit is contained in:
vis2k 2019-07-14 11:13:48 +02:00
parent b0b57a23cc
commit 22931fcd84

View File

@ -92,6 +92,10 @@ void Listen(int port)
// in the thread
TcpClient client = listener.AcceptTcpClient();
// set socket options
client.NoDelay = NoDelay;
client.SendTimeout = SendTimeout;
// generate the next connection id (thread safely)
int connectionId = NextConnectionId();