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
{{ message }}
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
would you accept a patch to add abstract socket support to Pipe.bind() and Pipe.listen()?
This would be Linux only, and fail on non-Linux (probably with UV_EINVAL?)
On Linux this would create an AF_UNIX socket, call connect() or bind(), then do do a uv_pipe_open() on the FD. I investigated this as some point in the past, and I remember that both operations never block on Linux (these are local sockets), so I'd not do anything complicated for handling EINTR. Instead I would make the FD non-blocking only after it is successfully bound/connected, and I would depend on Linux not to block (or worst-case block for a very small amount of time).
The text was updated successfully, but these errors were encountered:
As per:
joyent/libuv#1486 (comment)
would you accept a patch to add abstract socket support to Pipe.bind() and Pipe.listen()?
This would be Linux only, and fail on non-Linux (probably with UV_EINVAL?)
On Linux this would create an AF_UNIX socket, call connect() or bind(), then do do a uv_pipe_open() on the FD. I investigated this as some point in the past, and I remember that both operations never block on Linux (these are local sockets), so I'd not do anything complicated for handling EINTR. Instead I would make the FD non-blocking only after it is successfully bound/connected, and I would depend on Linux not to block (or worst-case block for a very small amount of time).
The text was updated successfully, but these errors were encountered: