[PR #3536] [MERGED] fix a race condition issue #4773

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

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/3536
Author: @fatedier
Created: 7/20/2023
Status: Merged
Merged: 7/20/2023
Merged by: @fatedier

Base: devHead: fix-race


📝 Commits (1)

  • dbc5ee9 fix a race condition issue

📊 Changes

12 files changed (+34 additions, -14 deletions)

View changed files

📝 Release.md (+4 -1)
📝 client/proxy/proxy.go (+3 -1)
📝 client/proxy/sudp.go (+3 -1)
📝 client/proxy/udp.go (+3 -1)
📝 client/visitor/stcp.go (+3 -1)
📝 client/visitor/xtcp.go (+3 -1)
📝 go.mod (+2 -2)
📝 go.sum (+4 -3)
📝 pkg/util/version/version.go (+1 -1)
📝 server/proxy/http.go (+3 -1)
📝 server/proxy/proxy.go (+3 -1)
📝 test/e2e/basic/basic.go (+2 -0)

📄 Description

Summary

🤖 Generated by Copilot at 4aaacfe

This pull request optimizes the compression and decompression of data for various proxy and visitor types by using a sync.Pool to reuse buffers instead of allocating new ones. The changes affect the go.mod file and several files in the client/proxy and server/proxy packages.

WHY


🔄 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/3536 **Author:** [@fatedier](https://github.com/fatedier) **Created:** 7/20/2023 **Status:** ✅ Merged **Merged:** 7/20/2023 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `fix-race` --- ### 📝 Commits (1) - [`dbc5ee9`](https://github.com/fatedier/frp/commit/dbc5ee9007ceac9723d8011102008073f00cf08d) fix a race condition issue ### 📊 Changes **12 files changed** (+34 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `Release.md` (+4 -1) 📝 `client/proxy/proxy.go` (+3 -1) 📝 `client/proxy/sudp.go` (+3 -1) 📝 `client/proxy/udp.go` (+3 -1) 📝 `client/visitor/stcp.go` (+3 -1) 📝 `client/visitor/xtcp.go` (+3 -1) 📝 `go.mod` (+2 -2) 📝 `go.sum` (+4 -3) 📝 `pkg/util/version/version.go` (+1 -1) 📝 `server/proxy/http.go` (+3 -1) 📝 `server/proxy/proxy.go` (+3 -1) 📝 `test/e2e/basic/basic.go` (+2 -0) </details> ### 📄 Description ### Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 4aaacfe</samp> This pull request optimizes the compression and decompression of data for various proxy and visitor types by using a sync.Pool to reuse buffers instead of allocating new ones. The changes affect the `go.mod` file and several files in the `client/proxy` and `server/proxy` packages. ### WHY <!-- 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:48:27 -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#4773
No description provided.