Commit d1c358c5 authored by Marc Gravell's avatar Marc Gravell

don't set any socket options on unix sockets

parent 84deeff0
......@@ -195,9 +195,8 @@ void proxyCallback(IAsyncResult ar)
var addressFamily = endpoint.AddressFamily == AddressFamily.Unspecified ? AddressFamily.InterNetwork : endpoint.AddressFamily;
var socket = new Socket(addressFamily, SocketType.Stream, ProtocolType.Tcp);
SocketConnection.SetRecommendedClientOptions(socket);
if (addressFamily == AddressFamily.Unix) socket.NoDelay = false;
if (addressFamily != AddressFamily.Unix) SocketConnection.SetRecommendedClientOptions(socket);
try
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment