From 22931fcd84e402a60b74f5261313c830913754fc Mon Sep 17 00:00:00 2001 From: vis2k Date: Sun, 14 Jul 2019 11:13:48 +0200 Subject: [PATCH] fix: Telepathy forgot to set socket options for accepted clients on the server --- Assets/Mirror/Runtime/Transport/Telepathy/Server.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Mirror/Runtime/Transport/Telepathy/Server.cs b/Assets/Mirror/Runtime/Transport/Telepathy/Server.cs index baad7ccee..36c242617 100644 --- a/Assets/Mirror/Runtime/Transport/Telepathy/Server.cs +++ b/Assets/Mirror/Runtime/Transport/Telepathy/Server.cs @@ -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();