Skip to content

Commit

Permalink
fix(bk-components): update timeout of bkauth and bk-apigateway-core (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken authored Feb 21, 2025
1 parent d7568ca commit e8077f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/apisix/plugins/bk-components/bk-apigateway-core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ local bk_components_utils = require("apisix.plugins.bk-components.utils")
local QUERY_PERMISSION_URL = "/api/v1/micro-gateway/%s/permissions/"
local QUERY_PUBLIC_KEY_URL = "/api/v1/micro-gateway/%s/public_keys/"
-- NOTE: important, if you change the timeout here, you should reset the timeout/exptime in bk-cache-fallback lock
local BKCORE_TIMEOUT_MS = 2400
local BKCORE_TIMEOUT_MS = 2480

local _M = {
host = bk_core.config.get_bk_apigateway_core_addr(),
Expand Down
2 changes: 1 addition & 1 deletion src/apisix/plugins/bk-components/bkauth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ local VERIFY_APP_SECRET_URL = "/api/v1/apps/%s/access-keys/verify"
local LIST_APP_SECRETS_URL = "/api/v1/apps/%s/access-keys"
local GET_APP_URL = "/api/v1/apps/%s"

local BKAUTH_TIMEOUT_MS = 3 * 1000
local BKAUTH_TIMEOUT_MS = 5 * 1000

local bkapp = bk_core.config.get_bkapp() or {}

Expand Down

0 comments on commit e8077f7

Please sign in to comment.