[PR #2657] [MERGED] [client] Limit P2P attempts and restart on specific events #15433

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2657
Author: @lixmal
Created: 9/27/2024
Status: Merged
Merged: 10/8/2024
Merged by: @lixmal

Base: mainHead: limit-p2p-attempts


📝 Commits (10+)

📊 Changes

5 files changed (+285 additions, -58 deletions)

View changed files

📝 client/internal/peer/conn.go (+35 -25)
client/internal/peer/conn_monitor.go (+212 -0)
📝 client/internal/peer/stdnet.go (+2 -2)
📝 client/internal/peer/stdnet_android.go (+2 -2)
📝 client/internal/peer/worker_ice.go (+34 -29)

📄 Description

Describe your changes

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/2657 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 9/27/2024 **Status:** ✅ Merged **Merged:** 10/8/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `limit-p2p-attempts` --- ### 📝 Commits (10+) - [`be42b0b`](https://github.com/netbirdio/netbird/commit/be42b0b12d2bb565e9e6cbdbcc26d022dc2c435a) Limit P2P attempts and restart on specific events - [`120710f`](https://github.com/netbirdio/netbird/commit/120710f749d22f63238b35fce18c269e778b1b0a) Add missing const - [`a261d07`](https://github.com/netbirdio/netbird/commit/a261d07ef4bad0808add3ca2e4e03fa30d2a7c07) Handle error - [`6c60d04`](https://github.com/netbirdio/netbird/commit/6c60d04acb48635904b5f0dba74b17d2ca607186) Move code to separate file - [`be41a23`](https://github.com/netbirdio/netbird/commit/be41a238ad3294198650bb5f9e8a44d243a4291e) Fix return - [`34b7fb5`](https://github.com/netbirdio/netbird/commit/34b7fb5ca8425b8af5801a7cbb0dc708818923e6) Add back sleep - [`1fc1cbe`](https://github.com/netbirdio/netbird/commit/1fc1cbe8336c75b6f2895cbdb21b36e4dd1cb2ab) Add missing comment - [`7fc8180`](https://github.com/netbirdio/netbird/commit/7fc81807e8f275fd9744293d87090e3ca264d796) Don't consider relay candidates - [`efe3a04`](https://github.com/netbirdio/netbird/commit/efe3a04adac0260c420d4fd08add443716ce181d) Update client/internal/peer/conn_monitor.go - [`ecc0629`](https://github.com/netbirdio/netbird/commit/ecc0629cabd5e10c67fb3da37932a4e020434a45) Use Address only ### 📊 Changes **5 files changed** (+285 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/peer/conn.go` (+35 -25) ➕ `client/internal/peer/conn_monitor.go` (+212 -0) 📝 `client/internal/peer/stdnet.go` (+2 -2) 📝 `client/internal/peer/stdnet_android.go` (+2 -2) 📝 `client/internal/peer/worker_ice.go` (+34 -29) </details> ### 📄 Description ## Describe your changes ## 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 03:07:39 -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#15433