Skip to content

fix: Update list of watchers serially to avoid a data race #502

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

Merged
merged 4 commits into from
Mar 14, 2023

Conversation

rhansen
Copy link
Collaborator

@rhansen rhansen commented Mar 2, 2023

Also:

  • Fix some races in tests.
  • Pass -race to go test to detect data races

Copy link
Member

@buchdag buchdag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhansen I just have one question, other than that LGTM

rhansen added 4 commits March 14, 2023 03:39
5ms resolution is too fine for reliable tests.  Increase delays by a
factor of 10 to improve the chances that the desired path will win the
race.

Ideally the test would be rewritten to remove the races entirely, but
I'll leave that as a future exercise.
@buchdag buchdag merged commit 62cd989 into nginx-proxy:main Mar 14, 2023
@rhansen rhansen deleted the race branch April 13, 2023 05:20
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