You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the socket_addr error occurs, the socket is not released.
let socket = new_socket(libc::AF_UNIX, libc::SOCK_STREAM)?;
let (sockaddr, socklen) = socket_addr(path)?;
let sockaddr = &sockaddr as *const libc::sockaddr_un as *const libc::sockaddr;
I took a look and found two places. Why not follow the standard library? When the socket is created, it returns a wrapper object, which is released in the drop method of the object.
The UnixStream has an FD leakage problem.
When the socket_addr error occurs, the socket is not released.
mio/src/sys/unix/uds/stream.rs
Line 11 in 0accf7d
mio/src/sys/unix/uds/listener.rs
Line 11 in 0accf7d
mio/src/sys/windows/net.rs
Line 39 in 0accf7d
The text was updated successfully, but these errors were encountered: