[GH-ISSUE #2725] 修改heartbeat_interval为20s,keepalive_interval仍然是30s #2176

Closed
opened 2026-05-05 13:24:05 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @ZRJUN on GitHub (Dec 30, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2725

Bug Description

有什么办法可以修改keepalive_interval吗,为什么heartbeat_interval最好是90s不要修改

frpc Version

0.36.2

frps Version

0.36.2

System Architecture

linux/amd64

Configurations

[common]
bind_port = 7071
authentication_method = token
token = XXX
log_file = /var/log/frps.log
log_level = info
log_max_days = 3
log_level = trace
heartbeat_timeout = 20

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 @ZRJUN on GitHub (Dec 30, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2725 ### Bug Description 有什么办法可以修改keepalive_interval吗,为什么heartbeat_interval最好是90s不要修改 ### frpc Version 0.36.2 ### frps Version 0.36.2 ### System Architecture linux/amd64 ### Configurations [common] bind_port = 7071 authentication_method = token token = XXX log_file = /var/log/frps.log log_level = info log_max_days = 3 log_level = trace heartbeat_timeout = 20 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [X] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:24:05 -06:00
Author
Owner

@Becods commented on GitHub (Jan 5, 2022):

写死了
自行修改源码编译
0cee1877e3/test/e2e/pkg/request/request.go (L200)

<!-- gh-comment-id:1005566055 --> @Becods commented on GitHub (Jan 5, 2022): 写死了 自行修改源码编译 https://github.com/fatedier/frp/blob/0cee1877e36abbce9a0473c3c1da7e548c199621/test/e2e/pkg/request/request.go#L200
Author
Owner

@github-actions[bot] commented on GitHub (Feb 5, 2022):

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

<!-- gh-comment-id:1030463570 --> @github-actions[bot] commented on GitHub (Feb 5, 2022): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Author
Owner

@hsiang0100 commented on GitHub (Sep 26, 2023):

設定tcp_mux = false
即可讓heartbeat_timeout 跟 heartbeat_interval有效

<!-- gh-comment-id:1735029578 --> @hsiang0100 commented on GitHub (Sep 26, 2023): 設定tcp_mux = false 即可讓heartbeat_timeout 跟 heartbeat_interval有效
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#2176
No description provided.