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 deadlock issue #75

Merged
merged 10 commits into from
Aug 5, 2021
Merged

Fix deadlock issue #75

merged 10 commits into from
Aug 5, 2021

Conversation

kradalby
Copy link
Collaborator

@kradalby kradalby commented Aug 5, 2021

This PR depends on (or contains if you like) #74, please review that first and merge that / or just merge this when both are reviewed.

This PR removes most of the locks in the PollingMap handler as there
was combinations that caused deadlocks. Instead of doing a plain map and
doing the locking ourselves, we use sync.Map which handles it for us.

This should resolve #56 #50 and #73

kradalby added 10 commits August 5, 2021 18:11
This commit removes most of the locks in the PollingMap handler as there
was combinations that caused deadlocks. Instead of doing a plain map and
doing the locking ourselves, we use sync.Map which handles it for us.
@juanfont juanfont merged commit e7ce902 into juanfont:main Aug 5, 2021
@juanfont
Copy link
Owner

juanfont commented Aug 5, 2021

Thanks <3

@qbit
Copy link
Contributor

qbit commented Aug 5, 2021

Wooo

@kradalby kradalby deleted the syncmap branch March 2, 2022 08:56
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.

Nodes connected to headscale fail to see each other if headscale is fronted by nginx
3 participants