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

Exit from processConnResults after all tries #2621

Merged
merged 3 commits into from
Sep 19, 2024
Merged

Conversation

pappz
Copy link
Contributor

@pappz pappz commented Sep 19, 2024

Describe your changes

If all server is unavailable then the server picker never returns because we never close the result channel

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@pappz pappz force-pushed the relay/fix/server-picker-stuck branch from e86ea15 to b8080e3 Compare September 19, 2024 09:14
If all server is unavailable then the server picker never return
because we never close the result channel.
Count the number of the results and exit when we reached the
expected size
@pappz pappz force-pushed the relay/fix/server-picker-stuck branch from b8080e3 to 10856d3 Compare September 19, 2024 09:15
Copy link

sonarcloud bot commented Sep 19, 2024

@pappz pappz merged commit fc4b37f into main Sep 19, 2024
21 checks passed
@pappz pappz deleted the relay/fix/server-picker-stuck branch September 19, 2024 11:49
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