fix: don't attempt to set TCP_NODELAY on accepted unix streams
This patch fixes accepting streams from unix sockets resulting in operation not supported errors.
This commit is contained in:
@@ -152,7 +152,6 @@ impl UnixOrTcpListener {
|
||||
|
||||
let socket = socket2::SockRef::from(&stream);
|
||||
socket.set_keepalive(true)?;
|
||||
socket.set_nodelay(true)?;
|
||||
|
||||
Ok((remote_addr.into(), UnixOrTcpConnection::Unix { stream }))
|
||||
}
|
||||
@@ -188,7 +187,6 @@ impl UnixOrTcpListener {
|
||||
|
||||
let socket = socket2::SockRef::from(&stream);
|
||||
socket.set_keepalive(true)?;
|
||||
socket.set_nodelay(true)?;
|
||||
|
||||
Poll::Ready(Ok((
|
||||
remote_addr.into(),
|
||||
|
||||
Reference in New Issue
Block a user