[PR #154] [MERGED] fix: too many open files caused by agent not being closed #2579

Open
opened 2025-11-20 07:11:43 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/154
Author: @braginini
Created: 11/14/2021
Status: Merged
Merged: 11/14/2021
Merged by: @braginini

Base: mainHead: bugfix/too-many-openfiles


📝 Commits (2)

  • a099eaf fix: too many open files caused by agent not being closed after unsuccessful attempts to start a peer connection (happens when no network available)
  • 13f0cf9 fix: minor refactor to consider signal status

📊 Changes

4 files changed (+29 additions, -14 deletions)

View changed files

📝 client/internal/connection.go (+8 -2)
📝 client/internal/engine.go (+6 -1)
📝 signal/client/client.go (+14 -10)
📝 signal/client/client_test.go (+1 -1)

📄 Description

Too many open files are caused by the agent not being closed after unsuccessful attempts to start a peer connection.

Open FDs are growing if clients can't connect to Signal. Happens due to numerous retries without closing agent on failure.


🔄 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/154 **Author:** [@braginini](https://github.com/braginini) **Created:** 11/14/2021 **Status:** ✅ Merged **Merged:** 11/14/2021 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `bugfix/too-many-openfiles` --- ### 📝 Commits (2) - [`a099eaf`](https://github.com/netbirdio/netbird/commit/a099eaf72b2c063353969a9a4cdb44e924ca3b5b) fix: too many open files caused by agent not being closed after unsuccessful attempts to start a peer connection (happens when no network available) - [`13f0cf9`](https://github.com/netbirdio/netbird/commit/13f0cf9b74f03b7a2e397213fde7a3b10a4fb552) fix: minor refactor to consider signal status ### 📊 Changes **4 files changed** (+29 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/connection.go` (+8 -2) 📝 `client/internal/engine.go` (+6 -1) 📝 `signal/client/client.go` (+14 -10) 📝 `signal/client/client_test.go` (+1 -1) </details> ### 📄 Description Too many open files are caused by the agent not being closed after unsuccessful attempts to start a peer connection. Open FDs are growing if clients can't connect to Signal. Happens due to numerous retries without closing agent on failure. --- <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 2025-11-20 07:11:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2579