-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coalesce concurrent access token requests #5323
Conversation
0391027
to
8169c7a
Compare
DES-311 Bashing auth endpoints
Gregoire said:
When logging in, the desktop app will retry 3 times in quick succession to get the account token. This makes it fail. There are two issues to investigate:
bashing-auth-99c2cac5-fbf3-48e5-aeec-081c3e769ee7.log bashing-auth-d24c2bf0-fb5e-45b9-bb2b-84d28f9dcb9e.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 13 of 13 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
a261f95
to
797bc18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 15 of 15 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
797bc18
to
4e5d08e
Compare
Currently, multiple concurrent API calls will all send an
auth
request for the current account, if there is no valid access token. This PR fixes this by waiting for the in-flight request to complete if there already is one.Fix DES-311.
This change is