lua-users home
lua-l archive

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


Hi,

>
> In the description for settimeout() there is this :
>

> "Note: although timeout values have millisecond precision in
> LuaSocket,..."

This is for *very* large blocks of data, and not for receiving, just for
sending. If you want to send 10MB of data, you have to chop it up and
send part by part.

> Is there are a way to configure select() turn return _instantly_ if there
> is no data available?

How about calling select with a timeout 0? You can also set the timeout
to zero in the socket object can call receive.

> Does this mean that settimeout() will accept fractional second values
> such as settimeout(.10) as being valid for a 1/10th of a second timeout?

You bet. It already did in LuaSocket 1.4 (for Lua 4.0).

[]s,
Diego.