That’s right, it uses seconds. In addition, I’ve found it helpful to use the ‘t’ option mentioned on that page, like this:
[lua]
settimeout(1, ‘t’)
[/lua]
This way the timeout applies to the entire networking attempt, and not just each operation that LuaSocket performs.
- Andrew