[GH-ISSUE #4391] 高版本(0.58.1和0.59)frps,在连接。到达心跳时间后会断开 #3466

Closed
opened 2026-05-05 14:13:46 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @haimian467 on GitHub (Aug 19, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4391

Bug Description

当frps的版本为0.58.1或者0.59时
当客户端进行连接开始计时,时间到达“heartbeat_timeout”后会断开连接。
0.57版本就不会出现这样的情况
当heartbeat_timeout = 90,会在连接的90秒后断开
当heartbeat_timeout = 30,会在连接的30秒后断开

frpc Version

all

frps Version

frps -0.58.1 and frps -0.59

System Architecture

linux/amd64

Configurations

** frps**
[common]
bind_addr = 0.0.0.0
bind_port = 7000
bind_udp_port = 7000
vhost_http_port = 8080
vhost_https_port = 443
dashboard_port = 1234
token = *************
dashboard_user = *************
dashboard_pwd = *************
#enablePrometheus = true
#enable_prometheus = true

heartbeat_timeout = 30
user_conn_timeout = 60
vhost_http_timeout = 90

frpc
[common]
server_addr=*************
server_port=7000
token=*************
user=admin
#TCP
[TCP]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 3389

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 @haimian467 on GitHub (Aug 19, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4391 ### Bug Description 当frps的版本为0.58.1或者0.59时 当客户端进行连接开始计时,时间到达“heartbeat_timeout”后会断开连接。 0.57版本就不会出现这样的情况 当heartbeat_timeout = 90,会在连接的90秒后断开 当heartbeat_timeout = 30,会在连接的30秒后断开 ### frpc Version all ### frps Version frps -0.58.1 and frps -0.59 ### System Architecture linux/amd64 ### Configurations ** frps** [common] bind_addr = 0.0.0.0 bind_port = 7000 bind_udp_port = 7000 vhost_http_port = 8080 vhost_https_port = 443 dashboard_port = 1234 token = ************* dashboard_user = ************* dashboard_pwd = ************* #enablePrometheus = true #enable_prometheus = true heartbeat_timeout = 30 user_conn_timeout = 60 vhost_http_timeout = 90 **frpc** [common] server_addr=************* server_port=7000 token=************* user=admin #TCP [TCP] type = tcp local_ip = 127.0.0.1 local_port = 3389 remote_port = 3389 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [X] Performance and Scalability - [X] Security - [X] User Experience - [ ] Test and Release - [X] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@superzjg commented on GitHub (Aug 19, 2024):

0.58以上尝试都用toml配置,不用ini,且不指定心跳参数(默认关闭),不要关闭默认的tcpmux

<!-- gh-comment-id:2296666852 --> @superzjg commented on GitHub (Aug 19, 2024): 0.58以上尝试都用toml配置,不用ini,且不指定心跳参数(默认关闭),不要关闭默认的tcpmux
Author
Owner

@haimian467 commented on GitHub (Aug 20, 2024):

感谢您的回复,不指定 心跳是解决问题的关键。
将如下代码注释掉
#heartbeat_timeout = 30

<!-- gh-comment-id:2298013469 --> @haimian467 commented on GitHub (Aug 20, 2024): 感谢您的回复,不指定 心跳是解决问题的关键。 将如下代码注释掉 #heartbeat_timeout = 30
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#3466
No description provided.