[PR #1757] [CLOSED] [Feature] Load Balance TcpMux FRP Client Connections #4447

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

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/1757
Author: @GuyLewin
Created: 4/15/2020
Status: Closed

Base: devHead: feature/load-balance-tcpmux


📝 Commits (1)

  • 5c8b4e3 feat: allow multiple duplicate proxies registered with tcpmux for load balancing

📊 Changes

6 files changed (+76 additions, -25 deletions)

View changed files

📝 server/service.go (+1 -1)
📝 utils/tcpmux/httpconnect.go (+1 -1)
📝 utils/vhost/http.go (+6 -5)
📝 utils/vhost/https.go (+1 -1)
📝 utils/vhost/router.go (+62 -12)
📝 utils/vhost/vhost.go (+5 -5)

📄 Description

Implement a simple load balancing strategy (random) to be able to hold multiple FRP client connections with the TcpMux plugin for the same domain and host.
It's only for TcpMux now becauase Http and Https are tightly coupled with the fact that there's only 1 connection per domain + location. We should break this coupling in the future.


🔄 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/1757 **Author:** [@GuyLewin](https://github.com/GuyLewin) **Created:** 4/15/2020 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feature/load-balance-tcpmux` --- ### 📝 Commits (1) - [`5c8b4e3`](https://github.com/fatedier/frp/commit/5c8b4e3ab9718781119968a361642cf51f3f3a69) feat: allow multiple duplicate proxies registered with tcpmux for load balancing ### 📊 Changes **6 files changed** (+76 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `server/service.go` (+1 -1) 📝 `utils/tcpmux/httpconnect.go` (+1 -1) 📝 `utils/vhost/http.go` (+6 -5) 📝 `utils/vhost/https.go` (+1 -1) 📝 `utils/vhost/router.go` (+62 -12) 📝 `utils/vhost/vhost.go` (+5 -5) </details> ### 📄 Description Implement a simple load balancing strategy (random) to be able to hold multiple FRP client connections with the TcpMux plugin for the same domain and host. It's only for TcpMux now becauase Http and Https are tightly coupled with the fact that there's only 1 connection per domain + location. We should break this coupling in the future. --- <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:42:16 -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#4447
No description provided.