File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 56
56
git clone https://github.com/openresty/test-nginx.git test-nginx
57
57
cd test-nginx && (sudo cpanm --notest . > build.log 2>&1 || (cat build.log && exit 1)) && cd ..
58
58
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
60
60
chmod +x build-apisix-base.sh
61
61
OR_PREFIX=$OPENRESTY_PREFIX ./build-apisix-base.sh latest
62
62
Original file line number Diff line number Diff line change @@ -507,7 +507,8 @@ function refresh_jwt_token(self, timeout)
507
507
end
508
508
509
509
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 )
511
512
if self .jwt_token and now () - self .last_auth_time < 60 * 3 + random (0 , 60 ) then
512
513
return true , nil
513
514
end
You can’t perform that action at this time.
0 commit comments