Skip to content

Commit

Permalink
fix attempt to concatenate a nil value (local timeout) (#1936)
Browse files Browse the repository at this point in the history
  • Loading branch information
huahua132 authored and cloudwu committed Jun 23, 2024
1 parent ccd923c commit dc1980d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lualib/http/sockethelper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dc1980d

Please sign in to comment.