From 172a10397d45c715bfc13c3b7e61b1da69ed0ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=B3=BD=E8=BD=A9?= Date: Fri, 9 Jul 2021 00:49:05 +0800 Subject: [PATCH] feat: increase ext-plugin timeout to 60s (#4557) Signed-off-by: spacewander --- apisix/plugins/ext-plugin/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apisix/plugins/ext-plugin/init.lua b/apisix/plugins/ext-plugin/init.lua index e655d1e97d1b..8adb9ee27aa8 100644 --- a/apisix/plugins/ext-plugin/init.lua +++ b/apisix/plugins/ext-plugin/init.lua @@ -502,7 +502,7 @@ rpc_call = function (ty, conf, ctx, ...) local path = helper.get_path() local sock = socket_tcp() - sock:settimeouts(1000, 5000, 5000) + sock:settimeouts(1000, 60000, 60000) local ok, err = sock:connect(path) if not ok then return nil, "failed to connect to the unix socket " .. path .. ": " .. err