Skip to content

Commit

Permalink
feat: increase ext-plugin timeout to 60s (#4557)
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <[email protected]>
  • Loading branch information
spacewander authored Jul 8, 2021
1 parent 78c2514 commit 172a103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/plugins/ext-plugin/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 172a103

Please sign in to comment.