mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-12 22:03:31 +02:00
Trying to get non-blocking connect to work.
This commit is contained in:
@ -77,11 +77,11 @@ print("trying to connect peer", who, host, port)
|
||||
if not ret and err == "timeout" then
|
||||
print("got timeout, will wait", who)
|
||||
wait(who, "output")
|
||||
ret, err = who:connected()
|
||||
ret, err = who:connect(host, port)
|
||||
print("connection results arrived", who, ret, err)
|
||||
end
|
||||
if not ret then
|
||||
print("connection failed", who)
|
||||
print("connection failed", who, err)
|
||||
kick(who)
|
||||
kick(context[who].peer)
|
||||
else
|
||||
|
Reference in New Issue
Block a user