mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-22 15:23:06 +00:00
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:
1 file changed
-2
@@ -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