[PR #2621] [MERGED] Exit from processConnResults after all tries #15412

Closed
opened 2026-08-05 03:07:35 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2621
Author: @pappz
Created: 9/19/2024
Status: Merged
Merged: 9/19/2024
Merged by: @pappz

Base: mainHead: relay/fix/server-picker-stuck


📝 Commits (3)

📊 Changes

2 files changed (+38 additions, -3 deletions)

View changed files

📝 relay/client/picker.go (+7 -3)
relay/client/picker_test.go (+31 -0)

📄 Description

Describe your changes

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

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2621 **Author:** [@pappz](https://github.com/pappz) **Created:** 9/19/2024 **Status:** ✅ Merged **Merged:** 9/19/2024 **Merged by:** [@pappz](https://github.com/pappz) **Base:** `main` ← **Head:** `relay/fix/server-picker-stuck` --- ### 📝 Commits (3) - [`10856d3`](https://github.com/netbirdio/netbird/commit/10856d36abaa82c33916ff01ecb16150f7d71bee) Exit from processConnResults after all tries - [`a35ee11`](https://github.com/netbirdio/netbird/commit/a35ee11959c827e69d93920247664485f8ca1dc8) Lint fix - [`9000a5d`](https://github.com/netbirdio/netbird/commit/9000a5de88b7354012f7844081eb827b94cf6c30) Grammar fix ### 📊 Changes **2 files changed** (+38 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `relay/client/picker.go` (+7 -3) ➕ `relay/client/picker_test.go` (+31 -0) </details> ### 📄 Description ## 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 - [x] 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:07:35 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#15412