mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #5150] Tweak keepalive / max idle behavior to overcome brief connection outages #4024
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#4024
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?
Originally created by @ByteCrunch on GitHub (Feb 2, 2026).
Original GitHub issue: https://github.com/fatedier/frp/issues/5150
Bug Description
We did some internal testing in regards to frpc's behavior when the connection to frps is lost.
Our goal is to overcome short outages (< 1 min) of the connection between frpc and frps by tweaking
transport.tcpMuxKeepaliveIntervalOR for quictransport.quic.keepalivePeriod/transport.quic.maxIdleTimeoutto enhance the experience for legacy services with persistent connections.We tested different increased values for these config options and blocked the incoming frpc packets on the frps host with:
However, we were not able to extend the time until frpc will close all visitor sockets to any duration longer than 30 secs. We also set these options on both frpc clients and in the frps config, but the behavior always seems to be the same - even with really high values like 270 (just for testing).
Is there any (sensible) way to tweak these options to achieve that? Also, we have issues to understand what the options actually do beside the remarks in https://github.com/fatedier/frp/blob/dev/conf/frpc_full_example.toml and some code comments we have found.
frpc Version
v0.66.0
frps Version
v0.66.0
System Architecture
linux/amd64
Configurations
frps.toml
frpc.toml (tcp)
frpc.toml (quic)
Logs
No response
Steps to reproduce
No response
Affected area
@github-actions[bot] commented on GitHub (Feb 17, 2026):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.