[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaSocket: asynchronous connect on Windows not behaving properly
- From: Florian Weimer <fw@...>
- Date: Sat, 14 Nov 2009 09:57:47 +0100
* Jerome Vuarand:
> 2009/11/12 Jerome Vuarand <firstname.lastname@example.org>:
>> It seems that on Linux, the socket is signaled as writable by select
>> whether it is connected or connection failed. In both cases exceptfds
>> is returned empty. So the following script still exhibits different
>> behaviour on Windows and Linux :
> Some food for thoughts : I've been given the following links, that
> show that non-blocking connect result detection is not trivial.
Last updated nine years ago. getsockopt(SO_ERROR) is portable
nowadays if you take care of both ways to return the error (int out
parameter and errno).