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:
networkException
2025-07-27 02:41:39 +02:00
parent 012e1f3173
commit 017fd53308

View File

@@ -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(),