[PR #732] [MERGED] Fix connstate indication #12932

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/732
Author: @pappz
Created: 3/9/2023
Status: Merged
Merged: 3/16/2023
Merged by: @pappz

Base: mainHead: fix-connstate-indication


📝 Commits (9)

  • 8ebb720 Add conn state callback for mgm client
  • fbeb2d0 In StateRecorder move mgm address to constructor
  • cfaeca8 Fix RWMutex initialization in mgm client
  • e5dd903 Fix signal server state indication
  • cd2bcb9 Fix tests
  • 335bdd9 Fix tests
  • 2809027 Fix tests
  • 4f49c95 Write comments
  • 9a41e8a Fix management server address update

📊 Changes

10 files changed (+219 additions, -116 deletions)

View changed files

📝 client/cmd/up.go (+1 -1)
📝 client/internal/connect.go (+26 -7)
📝 client/internal/engine_test.go (+6 -6)
📝 client/internal/peer/conn_test.go (+4 -4)
📝 client/internal/peer/status.go (+42 -31)
📝 client/internal/peer/status_test.go (+30 -41)
📝 client/internal/routemanager/manager_test.go (+1 -1)
📝 client/server/server.go (+9 -3)
📝 management/client/grpc.go (+55 -15)
📝 signal/client/grpc.go (+45 -7)

📄 Description

Describe your changes

Fix the status indication in the client service. The status of the
management server and the signal server was incorrect if the network
connection was broken. Basically the status update was not used by
the management and signal library.

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/732 **Author:** [@pappz](https://github.com/pappz) **Created:** 3/9/2023 **Status:** ✅ Merged **Merged:** 3/16/2023 **Merged by:** [@pappz](https://github.com/pappz) **Base:** `main` ← **Head:** `fix-connstate-indication` --- ### 📝 Commits (9) - [`8ebb720`](https://github.com/netbirdio/netbird/commit/8ebb72029dee1f340c42dd8ead6886296bbdde9f) Add conn state callback for mgm client - [`fbeb2d0`](https://github.com/netbirdio/netbird/commit/fbeb2d05f0b725ab8213b92d7554d69491ea4a7e) In StateRecorder move mgm address to constructor - [`cfaeca8`](https://github.com/netbirdio/netbird/commit/cfaeca865e2219307ae7f1e9480a5ff345905f67) Fix RWMutex initialization in mgm client - [`e5dd903`](https://github.com/netbirdio/netbird/commit/e5dd90389eada3c8d18c267d99ff9ce4365aa694) Fix signal server state indication - [`cd2bcb9`](https://github.com/netbirdio/netbird/commit/cd2bcb9e9559d35b1a3dd6394cf5a699ae88cf7d) Fix tests - [`335bdd9`](https://github.com/netbirdio/netbird/commit/335bdd9d1aa56ea1e69025ca9a518c23e35e28ca) Fix tests - [`2809027`](https://github.com/netbirdio/netbird/commit/2809027a9f2e65a1305bec82ed75ba58943a8cea) Fix tests - [`4f49c95`](https://github.com/netbirdio/netbird/commit/4f49c95dbfd17709068a591b870c712ca8980a23) Write comments - [`9a41e8a`](https://github.com/netbirdio/netbird/commit/9a41e8ad8798fa4e8ebfd39cfeb38122d25abca3) Fix management server address update ### 📊 Changes **10 files changed** (+219 additions, -116 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/up.go` (+1 -1) 📝 `client/internal/connect.go` (+26 -7) 📝 `client/internal/engine_test.go` (+6 -6) 📝 `client/internal/peer/conn_test.go` (+4 -4) 📝 `client/internal/peer/status.go` (+42 -31) 📝 `client/internal/peer/status_test.go` (+30 -41) 📝 `client/internal/routemanager/manager_test.go` (+1 -1) 📝 `client/server/server.go` (+9 -3) 📝 `management/client/grpc.go` (+55 -15) 📝 `signal/client/grpc.go` (+45 -7) </details> ### 📄 Description ## Describe your changes Fix the status indication in the client service. The status of the management server and the signal server was incorrect if the network connection was broken. Basically the status update was not used by the management and signal library. ## 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 02:07:02 -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#12932