From 517afda91e5c9cc498197aca840c79c487e1a3d7 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 12 Mar 2018 14:57:14 -0400 Subject: [PATCH] Core/Network: Fixes Permission denied on linux (i hope) --- Source/Game/Network/WorldSocketManager.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/Game/Network/WorldSocketManager.cs b/Source/Game/Network/WorldSocketManager.cs index c6e686944..ce392b23e 100644 --- a/Source/Game/Network/WorldSocketManager.cs +++ b/Source/Game/Network/WorldSocketManager.cs @@ -57,11 +57,10 @@ namespace Game.Network try { if (_socketSendBufferSize >= 0) - sock.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendBuffer, _socketSendBufferSize); + sock.SendBufferSize = _socketSendBufferSize; // Set TCP_NODELAY. - if (_tcpNoDelay) - sock.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.NoDelay, true); + sock.NoDelay = _tcpNoDelay; } catch (SocketException ex) {