lua-users home
lua-l archive

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


Hi,

I'm trying the following code, which never prints "after".
I use the sample echo server in the LuaSocket reference.

local recvt, sendt = {}, {}
local master = socket.tcp()
master:settimeout(0)
local obj = master:connect("localhost", 37500)
assert(obj == nil)
print'before'
socket.select(recvt, sendt)
print'after'

Did you forget to add obj to recvt and sendt?

[]s,
Diego