fix attempt to concatenate a nil value (local timeout) (#1936)

This commit is contained in:
华仔
2024-06-04 11:19:10 +08:00
committed by Cloud Wu
parent ccd923c44f
commit dc1980dfc8

View File

@@ -114,7 +114,7 @@ function sockethelper.connect(host, port, timeout)
if fd then
return fd
end
error(socket_error("connect failed host = " .. host .. ' port = '.. port .. ' timeout = ' .. timeout .. ' err = ' .. tostring(err) .. ' is_time_out = '.. tostring(is_time_out)))
error(socket_error("connect failed host = " .. host .. ' port = '.. port .. ' timeout = ' .. tostring(timeout) .. ' err = ' .. tostring(err) .. ' is_time_out = '.. tostring(is_time_out)))
end
function sockethelper.close(fd)