On 4/27/24 00:42, Ihar Hrachyshka wrote:
> POSIX defines EINPROGRESS as the return value for non-blocking connect()
> [1]. But in Linux, AF_UNIX connect() returns EAGAIN instead of
> EINPROGRESS. (but only for AF_UNIX sockets!) [2]
>
> Both cases should be handled the same way - by returning the `
On Fri, Apr 26, 2024 at 10:42:36PM +, Ihar Hrachyshka wrote:
> POSIX defines EINPROGRESS as the return value for non-blocking connect()
> [1]. But in Linux, AF_UNIX connect() returns EAGAIN instead of
> EINPROGRESS. (but only for AF_UNIX sockets!) [2]
>
> Both cases should be handled the same
POSIX defines EINPROGRESS as the return value for non-blocking connect()
[1]. But in Linux, AF_UNIX connect() returns EAGAIN instead of
EINPROGRESS. (but only for AF_UNIX sockets!) [2]
Both cases should be handled the same way - by returning the `fd` and
letting the caller to complete connection a