Use the renamed functions from socket2

This commit is contained in:
Quentin Gliech committed 2025-07-30 11:24:04 +02:00
1 parent 1710b14270
commit 62b9874d6e
1 file changed
+2 -2
+2 -2
View File
@@ -160,7 +160,7 @@ impl UnixOrTcpListener {
let socket = socket2::SockRef::from(&stream);
socket.set_keepalive(true)?;
socket.set_nodelay(true)?;
socket.set_tcp_nodelay(true)?;
Ok((remote_addr.into(), UnixOrTcpConnection::Tcp { stream }))
}
@@ -198,7 +198,7 @@ impl UnixOrTcpListener {
let socket = socket2::SockRef::from(&stream);
socket.set_keepalive(true)?;
socket.set_nodelay(true)?;
socket.set_tcp_nodelay(true)?;
Poll::Ready(Ok((
remote_addr.into(),