[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaSocket, Win32 and select()
- From: skaller <skaller@...>
- Date: 28 Jan 2005 15:48:10 +1100
On Fri, 2005-01-28 at 15:01, Diego Nehab wrote:
> I am telling you that I call select, it returns the socket as writable,
> I call send immediately after, and it returns EWOULDBLOCK. There is no
> other thread using the socket. There is no problem with the connection.
> Why do you insist this is not a bug?
"It is not specified
how long these guarantees can be assumed to be valid"
means the assurance your write to the socket
cannot be assumed to succeed at *any* finite point in time after
the select call is done.
> How am I supposed to avoid busy wait in the presence of this bug?
Install Unix?
--
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850,
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net