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
Browse filesBrowse the repository at this point in the historyBrowse files
germanius
committed
🧵zb : Use async versions of UnixStream when possible
When connecting to a UnixSocket a blocking/threaded API is
being used. This commit changes this to use `tokio::net::UnixStream`
and `Async<std::os::unix::net::UnixStream>` when possible preventing
the use of extra threads. The windows version continues using the
blocking/threaded API.
The `UnixStream::connect_addr` function from `SocketAddrExt` is
no longer used since neither tokio nor async-io supports it.
Instead, we use the plain `connect` functions in both environments,
since they allow for abstract names when the path is prepended
with '\0' (a null byte).
0 commit comments