From dc1980dfc83e5616987c642ffad450820ce0b381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=BB=94?= <41766775+huahua132@users.noreply.github.com> Date: Tue, 4 Jun 2024 11:19:10 +0800 Subject: [PATCH] fix attempt to concatenate a nil value (local timeout) (#1936) --- lualib/http/sockethelper.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/http/sockethelper.lua b/lualib/http/sockethelper.lua index 9f0a6d03c..73b058228 100644 --- a/lualib/http/sockethelper.lua +++ b/lualib/http/sockethelper.lua @@ -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)