mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #2758] [MERGED] allow to disable application layer heartbeat to reduce traffic cost #4620
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4620
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
dev← Head:fix-2754📝 Commits (1)
44c6fc1allow 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_muxis enabled, yamux will do heartbeat checks in its layer. Addtcp_mux_keepalive_intervalto 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.