[PR #2617] [MERGED] Do not block the msg receiving if the wg proxy does not operate #15410

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/2617
Author: @pappz
Created: 9/18/2024
Status: Merged
Merged: 9/19/2024
Merged by: @pappz

Base: mainHead: relay/explicit-close-conn


📝 Commits (1)

  • 09d0343 - Increase queue size and drop the overflowed messages

📊 Changes

3 files changed (+40 additions, -14 deletions)

View changed files

📝 client/internal/peer/conn.go (+6 -3)
📝 client/internal/wgproxy/proxy_userspace.go (+14 -4)
📝 relay/client/client.go (+20 -7)

📄 Description

Describe your changes

Do not block the msg receiving if the wg proxy does not operate

  • Increase queue size and drop the overflowed messages
  • Explicit close the net.Conn in user space wgProxy when close the wgProxy
  • Add log to conn creation and close events across the wg proxy flow.

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/2617 **Author:** [@pappz](https://github.com/pappz) **Created:** 9/18/2024 **Status:** ✅ Merged **Merged:** 9/19/2024 **Merged by:** [@pappz](https://github.com/pappz) **Base:** `main` ← **Head:** `relay/explicit-close-conn` --- ### 📝 Commits (1) - [`09d0343`](https://github.com/netbirdio/netbird/commit/09d034322f55faf22945d7fb14985f721c2f2b92) - Increase queue size and drop the overflowed messages ### 📊 Changes **3 files changed** (+40 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/peer/conn.go` (+6 -3) 📝 `client/internal/wgproxy/proxy_userspace.go` (+14 -4) 📝 `relay/client/client.go` (+20 -7) </details> ### 📄 Description ## Describe your changes Do not block the msg receiving if the wg proxy does not operate - Increase queue size and drop the overflowed messages - Explicit close the net.Conn in user space wgProxy when close the wgProxy - Add log to conn creation and close events across the wg proxy flow. - ## 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#15410