[PR #2758] [MERGED] allow to disable application layer heartbeat to reduce traffic cost #4620

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

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/2758
Author: @fatedier
Created: 1/12/2022
Status: Merged
Merged: 1/13/2022
Merged by: @fatedier

Base: devHead: fix-2754


📝 Commits (1)

  • 44c6fc1 allow to disable application layer heartbeat to reduce traffic cost

📊 Changes

11 files changed (+228 additions, -146 deletions)

View changed files

📝 client/control.go (+18 -7)
📝 client/service.go (+1 -1)
📝 conf/frpc_full.ini (+5 -1)
📝 conf/frps_full.ini (+4 -1)
📝 pkg/config/client.go (+40 -38)
📝 pkg/config/client_test.go (+28 -27)
📝 pkg/config/server.go (+41 -37)
📝 pkg/config/server_test.go (+32 -30)
📝 server/control.go (+10 -3)
📝 server/service.go (+1 -1)
test/e2e/features/heartbeat.go (+48 -0)

📄 Description

fix #2754

If tcp_mux is enabled, yamux will do heartbeat checks in its layer. Add tcp_mux_keepalive_interval to allow users to config this behavior.

Beyond that, we can disable the application layer heartbeat to reduce traffic consumption.


🔄 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/2758 **Author:** [@fatedier](https://github.com/fatedier) **Created:** 1/12/2022 **Status:** ✅ Merged **Merged:** 1/13/2022 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `fix-2754` --- ### 📝 Commits (1) - [`44c6fc1`](https://github.com/fatedier/frp/commit/44c6fc1736ff48e45b341a11a2eb0a50a0db4119) allow to disable application layer heartbeat to reduce traffic cost ### 📊 Changes **11 files changed** (+228 additions, -146 deletions) <details> <summary>View changed files</summary> 📝 `client/control.go` (+18 -7) 📝 `client/service.go` (+1 -1) 📝 `conf/frpc_full.ini` (+5 -1) 📝 `conf/frps_full.ini` (+4 -1) 📝 `pkg/config/client.go` (+40 -38) 📝 `pkg/config/client_test.go` (+28 -27) 📝 `pkg/config/server.go` (+41 -37) 📝 `pkg/config/server_test.go` (+32 -30) 📝 `server/control.go` (+10 -3) 📝 `server/service.go` (+1 -1) ➕ `test/e2e/features/heartbeat.go` (+48 -0) </details> ### 📄 Description fix #2754 If `tcp_mux` is enabled, yamux will do heartbeat checks in its layer. Add `tcp_mux_keepalive_interval` to allow users to config this behavior. Beyond that, we can disable the application layer heartbeat to reduce traffic consumption. --- <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:45:32 -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#4620
No description provided.