11.03.2020, 08:57
Try increasing timeout:
If you are still getting timeout errors you can check for "closed" error only like this:
Code:
sock:settimeout(60)
If you are still getting timeout errors you can check for "closed" error only like this:
Code:
elseif err == 'closed' then
alert('receive failed: ' .. tostring(err))
sock:close()
sock = nil
end