[PR #4431] [CLOSED] fix: memory leak #4980

Closed
opened 2026-05-05 14:52:25 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/4431
Author: @ivanszl
Created: 9/12/2024
Status: Closed

Base: devHead: leak-memory


📝 Commits (2)

📊 Changes

4 files changed (+7 additions, -6 deletions)

View changed files

📝 client/control.go (+1 -1)
📝 pkg/msg/handler.go (+1 -0)
📝 pkg/transport/message.go (+4 -4)
📝 server/control.go (+1 -1)

📄 Description

WHY

在某些特殊情况下,会导致内存泄露
在发送比接收慢的情况下,容易出现sendCh满,会导致后续所有的 goroutine 泄露了


🔄 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/fatedier/frp/pull/4431 **Author:** [@ivanszl](https://github.com/ivanszl) **Created:** 9/12/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `leak-memory` --- ### 📝 Commits (2) - [`57eba76`](https://github.com/fatedier/frp/commit/57eba762d8ed2e61dbccf95ffc8cbd6d0881193f) fix: memory leak - [`5e08b2e`](https://github.com/fatedier/frp/commit/5e08b2e9f6bb3f8391faa8fdf7acdc167c3a6f01) remove unnecessary code ### 📊 Changes **4 files changed** (+7 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `client/control.go` (+1 -1) 📝 `pkg/msg/handler.go` (+1 -0) 📝 `pkg/transport/message.go` (+4 -4) 📝 `server/control.go` (+1 -1) </details> ### 📄 Description ### WHY 在某些特殊情况下,会导致内存泄露 在发送比接收慢的情况下,容易出现sendCh满,会导致后续所有的 goroutine 泄露了 <!-- author to complete --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:52:25 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#4980
No description provided.