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 committed Feb 17, 2025
1 parent 1588b52 commit b26052d
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 @@ -27,7 +27,7 @@ local string_format = string.format
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 VERIFY_ACCESS_TOKEN_URL = "/api/v1/oauth/tokens/verify"

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 b26052d

Please sign in to comment.