[PR #2850] [CLOSED] [management] Add session id to peer update channel #18437

Open
opened 2026-08-05 04:08:31 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2850
Author: @pascal-fischer
Created: 11/6/2024
Status: Closed

Base: mainHead: feature/add-session-id-to-update-channel


📝 Commits (3)

📊 Changes

15 files changed (+200 additions, -133 deletions)

View changed files

📝 management/server/account_test.go (+10 -10)
📝 management/server/dns_test.go (+7 -7)
📝 management/server/group_test.go (+11 -11)
📝 management/server/grpcserver.go (+17 -15)
📝 management/server/nameserver_test.go (+6 -6)
📝 management/server/peer.go (+1 -1)
📝 management/server/peer_test.go (+17 -13)
📝 management/server/policy_test.go (+11 -11)
📝 management/server/posture_checks_test.go (+11 -11)
📝 management/server/route_test.go (+8 -8)
📝 management/server/setupkey_test.go (+3 -3)
📝 management/server/token_mgr_test.go (+1 -1)
📝 management/server/updatechannel.go (+44 -21)
📝 management/server/updatechannel_test.go (+43 -6)
📝 management/server/user_test.go (+10 -9)

📄 Description

Describe your changes

This PR adds a sesson id to the peer update channel. This way we will not close newer connections in case of race conditions on peer reconnection.

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/2850 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 11/6/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/add-session-id-to-update-channel` --- ### 📝 Commits (3) - [`22126d0`](https://github.com/netbirdio/netbird/commit/22126d04846b20e17d9c617da7e3cee5eec678d4) add session id to update channel - [`8ac4a0a`](https://github.com/netbirdio/netbird/commit/8ac4a0a1e162aa4bb13e633bd1088a9b28e09b75) fix bool - [`84f229f`](https://github.com/netbirdio/netbird/commit/84f229f05120e0679a90aad9edcdaa792e7b93d4) fix cancelRefresh ### 📊 Changes **15 files changed** (+200 additions, -133 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account_test.go` (+10 -10) 📝 `management/server/dns_test.go` (+7 -7) 📝 `management/server/group_test.go` (+11 -11) 📝 `management/server/grpcserver.go` (+17 -15) 📝 `management/server/nameserver_test.go` (+6 -6) 📝 `management/server/peer.go` (+1 -1) 📝 `management/server/peer_test.go` (+17 -13) 📝 `management/server/policy_test.go` (+11 -11) 📝 `management/server/posture_checks_test.go` (+11 -11) 📝 `management/server/route_test.go` (+8 -8) 📝 `management/server/setupkey_test.go` (+3 -3) 📝 `management/server/token_mgr_test.go` (+1 -1) 📝 `management/server/updatechannel.go` (+44 -21) 📝 `management/server/updatechannel_test.go` (+43 -6) 📝 `management/server/user_test.go` (+10 -9) </details> ### 📄 Description ## Describe your changes This PR adds a sesson id to the peer update channel. This way we will not close newer connections in case of race conditions on peer reconnection. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] 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 04:08:31 -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#18437