File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 5656 git clone https://github.com/openresty/test-nginx.git test-nginx
5757 cd test-nginx && (sudo cpanm --notest . > build.log 2>&1 || (cat build.log && exit 1)) && cd ..
5858
59- wget https://raw.githubusercontent.com/api7/apisix-build-tools/master /build-apisix-base.sh
59+ wget https://raw.githubusercontent.com/api7/apisix-build-tools/refs/tags/apisix-base/1.21.4.2.2 /build-apisix-base.sh
6060 chmod +x build-apisix-base.sh
6161 OR_PREFIX=$OPENRESTY_PREFIX ./build-apisix-base.sh latest
6262
Original file line number Diff line number Diff line change @@ -507,7 +507,8 @@ function refresh_jwt_token(self, timeout)
507507 end
508508
509509 if self .requesting_token then
510- self .sema :wait (timeout )
510+ local wait_timeout = timeout or self .timeout or 0
511+ self .sema :wait (wait_timeout )
511512 if self .jwt_token and now () - self .last_auth_time < 60 * 3 + random (0 , 60 ) then
512513 return true , nil
513514 end
You can’t perform that action at this time.
0 commit comments