[GH-ISSUE #4432] 心跳为什么中断链接 关闭心跳也会中断 #3501

Closed
opened 2026-05-05 14:14:52 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @Jianfei-DinG on GitHub (Sep 13, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4432

Bug Description

心跳为什么中断链接 关闭心跳也会中断,开启心跳会 根据心跳时间断开 关闭心跳会 长时间断开 但是 重启服务器 或者客户端 又正常 远程桌面特别 不友好 不是知道 怎么才能 爽快的使用

frpc Version

60

frps Version

60

System Architecture

x86

Configurations

frpc.toml

[common]
server_addr = "47.243.108.30"
server_port = 7000
token = "f9e7d334a60c974cdf39b8a57007d921"

[rdps]
type = "tcp"
local_ip = "127.0.0.1"
local_port = 3389
remote_port = 6002

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Jianfei-DinG on GitHub (Sep 13, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4432 ### Bug Description 心跳为什么中断链接 关闭心跳也会中断,开启心跳会 根据心跳时间断开 关闭心跳会 长时间断开 但是 重启服务器 或者客户端 又正常 远程桌面特别 不友好 不是知道 怎么才能 爽快的使用 ### frpc Version 60 ### frps Version 60 ### System Architecture x86 ### Configurations # frpc.toml [common] server_addr = "47.243.108.30" server_port = 7000 token = "f9e7d334a60c974cdf39b8a57007d921" [rdps] type = "tcp" local_ip = "127.0.0.1" local_port = 3389 remote_port = 6002 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:14:52 -06:00
Author
Owner

@xqzr commented on GitHub (Sep 13, 2024):

心跳需要,frpc 和 frps 使用相同的值

<!-- gh-comment-id:2349435537 --> @xqzr commented on GitHub (Sep 13, 2024): 心跳需要,frpc 和 frps 使用相同的值
Author
Owner

@Jianfei-DinG commented on GitHub (Sep 14, 2024):

心率需要,frpc 和 frps 使用相同的值

frpc 也要配置 心跳吗 怎么配置

<!-- gh-comment-id:2350785243 --> @Jianfei-DinG commented on GitHub (Sep 14, 2024): > 心率需要,frpc 和 frps 使用相同的值 frpc 也要配置 心跳吗 怎么配置
Author
Owner

@xqzr commented on GitHub (Sep 14, 2024):

心率需要,frpc 和 frps 使用相同的值

frpc 也要配置 心跳吗 怎么配置

https://gofrp.org/zh-cn/docs/reference/client-configures/#ClientTransportConfig

<!-- gh-comment-id:2351079093 --> @xqzr commented on GitHub (Sep 14, 2024): > > 心率需要,frpc 和 frps 使用相同的值 > > frpc 也要配置 心跳吗 怎么配置 https://gofrp.org/zh-cn/docs/reference/client-configures/#ClientTransportConfig
Author
Owner

@superzjg commented on GitHub (Sep 16, 2024):

60版本默认是关闭心跳的,采用tcpmux内置心跳,默认无需配置,使用没有问题。
另尝试采用 toml 版本格式重写配置试试。

<!-- gh-comment-id:2353081714 --> @superzjg commented on GitHub (Sep 16, 2024): 60版本默认是关闭心跳的,采用tcpmux内置心跳,默认无需配置,使用没有问题。 另尝试采用 toml 版本格式重写配置试试。
Author
Owner

@github-actions[bot] commented on GitHub (Oct 8, 2024):

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:2398297443 --> @github-actions[bot] commented on GitHub (Oct 8, 2024): Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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#3501
No description provided.