Skip to content

Commit

Permalink
fix: Telepathy forgot to set socket options for accepted clients on t…
Browse files Browse the repository at this point in the history
…he server
  • Loading branch information
miwarnec committed Jul 14, 2019
1 parent b0b57a2 commit 22931fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/Mirror/Runtime/Transport/Telepathy/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 22931fc

Please sign in to comment.