Skip to content
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

[IMA/GMA] Fix race condition in adapters where we reported initialized too early #87

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

IanDBird
Copy link
Collaborator

This PR fixes a theoretical race condition that could occur if:

  • The adapter is initialized before the UID2Manager has been previously set up
    • This shouldn't happen if the integrator has followed the integration guide to ensure this is part of the Application creation. However, since we can't enforce this, we should try to be as safe as possible
  • The signals are requested immediately after the adapter is initialized.

Since the UID2Manager is potentially restoring the identity from disk, it's possible that for a few ms, we will report a null token before it's loaded.

@IanDBird IanDBird merged commit bccd391 into main Jun 10, 2024
2 checks passed
@IanDBird IanDBird deleted the ian/adapter-race-condition branch June 10, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants