resolve the refresh windows gap between current uamqp setting (6 mins) and AAD service (5 mins)
the AAD service returns a cached token, the service side refresh the token until 5 mins before expiration
not to put an old token onto the cbs link
avoid throttling SB/EH service
avoid potentially blocking handler work while token is still valid but about to be expired
TODO:
[x] step1: discuss with anna on the fix/design
[x] should override_... be a public parameter?
[x] step2: add tests
There's one more improvement I could think of, introducing backoff when calling "update_token" if the newly-generated token is the same as old one to avoid throttling token generation module/service, but I'm afraid that goes too far for now.
addressing issue: https://github.com/Azure/azure-sdk-for-python/issues/20573
The improvements include:
TODO:
There's one more improvement I could think of, introducing backoff when calling "update_token" if the newly-generated token is the same as old one to avoid throttling token generation module/service, but I'm afraid that goes too far for now.