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 committed 2025-07-27 02:41:39 +02:00
1 parent 77d700ebd5
commit ee47713649
1 file changed
-2
-2
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(),