Core/Network: Fixes Permission denied on linux (i hope)
This commit is contained in:
@@ -57,11 +57,10 @@ namespace Game.Network
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_socketSendBufferSize >= 0)
|
if (_socketSendBufferSize >= 0)
|
||||||
sock.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendBuffer, _socketSendBufferSize);
|
sock.SendBufferSize = _socketSendBufferSize;
|
||||||
|
|
||||||
// Set TCP_NODELAY.
|
// Set TCP_NODELAY.
|
||||||
if (_tcpNoDelay)
|
sock.NoDelay = _tcpNoDelay;
|
||||||
sock.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.NoDelay, true);
|
|
||||||
}
|
}
|
||||||
catch (SocketException ex)
|
catch (SocketException ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user