Re: [ovs-dev] [PATCH] socket: Don't fail when AF_UNIX connect() returns EAGAIN.

2024-05-02 Thread Ilya Maximets
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

Re: [ovs-dev] [PATCH] socket: Don't fail when AF_UNIX connect() returns EAGAIN.

2024-05-01 Thread Simon Horman
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

[ovs-dev] [PATCH] socket: Don't fail when AF_UNIX connect() returns EAGAIN.

2024-04-26 Thread Ihar Hrachyshka
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