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 reconfig freeze attempting to send to an unbuffered, unread channel #886

Merged
merged 5 commits into from May 31, 2023

Conversation

brad-defined
Copy link
Collaborator

Only create stop channel when a DNS background goroutine is created. Only send the stop signal when the channel exists.
Also create the channel with a buffer to size 1 so that the stop message can be immediately sent even if the goroutine is busy doing DNS lookups.

…uffered channel with no readers.

Only create stop channel when a DNS goroutine is created, and only send when the channel exists.
Buffer to size 1 so that the stop message can be immediately sent even if the goroutine is busy doing DNS lookups.
@wadey wadey added this to the v1.8.0 milestone May 31, 2023
lighthouse.go Outdated Show resolved Hide resolved
@brad-defined brad-defined merged commit 96f4dca into slackhq:master May 31, 2023
7 checks passed
@wadey wadey modified the milestones: v1.8.0, v1.7.2 Jun 1, 2023
gabos31 pushed a commit to oneclick-ag/nebula that referenced this pull request Jul 4, 2023
…el (slackhq#886)

* Fixes a reocnfig freeze where the reconfig attempts to send to an unbuffered channel with no readers.
Only create stop channel when a DNS goroutine is created, and only send when the channel exists.
Buffer to size 1 so that the stop message can be immediately sent even if the goroutine is busy doing DNS lookups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants