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

Fix race in jwk.AutoRefresh #686

Merged
merged 2 commits into from
Apr 13, 2022

Commits on Apr 13, 2022

  1. Add test that shows up the race condition

    This happens when AutoRefresh.Configure and
    AutoRefresh.doRefreshRequests happens at same time, trying to read/write
    the same target
    sergicastro committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    855e078 View commit details
    Browse the repository at this point in the history
  2. Fix the race in the AutoRefresh

    Splicitly protect read and write to targets in the method
    AutoRefresh.doRefreshRequest
    sergicastro committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    a6086bd View commit details
    Browse the repository at this point in the history