lua-users home
lua-l archive

Re: Luasocket socket.select timeout bugs?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Diego Nehab escribió:
Hi,
This doesn't work on Windows, though... Use socket.sleep instead.
Can you clarify? Calling select() with sub-second timeouts works fine on
for me on windows -- is this an issue with luasocket's use of winsock or
windows itself?
Wooo, first post to the group :)
Calling select with empty sets on Windows gives an error. Check the
manual and try it. :o)
 "Any two of the parameters, readfds, writefds, or exceptfds, can be
 given as null. At least one must be non-null, and any non-null
 descriptor set must contain at least one handle to a socket."
[]s,
Diego.
See at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/select_2.asp WSAEINVAL The /time-out/ value is not valid, or all three descriptor parameters were NULL.
Regards,
Daniel

AltStyle によって変換されたページ (->オリジナル) /