[PR #1987] Fix/proxy close #16154

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

Original Pull Request: https://github.com/netbirdio/netbird/pull/1987

State: closed
Merged: No


Describe your changes

Revert the context cancellation logic from the wg proxy and improve the error handling in case of resource freeing action.

  • In eBPF proxy implementation we can not close individual turn connections. It frees up in an implicit way if the ice agent closes the conn.
  • We should not mix in the resource freeing logic the context cancellation with the exported "close" functions. In the eBPF proxy was CloseConn(), Free(), and cancel by parent context.

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
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/1987 **State:** closed **Merged:** No --- ## Describe your changes Revert the context cancellation logic from the wg proxy and improve the error handling in case of resource freeing action. - In eBPF proxy implementation we can not close individual turn connections. It frees up in an implicit way if the ice agent closes the conn. - We should not mix in the resource freeing logic the context cancellation with the exported "close" functions. In the eBPF proxy was `CloseConn()`, `Free()`, and cancel by parent `context`. ## 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
saavagebueno added the pull-request label 2026-08-05 04:05:47 -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#16154