[GH-ISSUE #3239] Ping类型的代理是多久被执行一次 #2601

Closed
opened 2026-05-05 13:40:38 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @zhangboqi on GitHub (Jan 6, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3239

Bug Description

想修改下ping代理的发送时间,但是没有找到相关的参数。

frpc Version

0.46.0

frps Version

0.46.0

System Architecture

linux/amd64

Configurations

这是我的服务端配置

[common]
bind_port = 7000
dashboard_port = 7500
quic_max_idle_timeout = 10
[plugin.notify]
addr = 127.0.0.1:3578
path = /handler
ops = Ping,NewProxy,CloseProxy,NewWorkConn,NewUserConn

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 @zhangboqi on GitHub (Jan 6, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3239 ### Bug Description 想修改下ping代理的发送时间,但是没有找到相关的参数。 ### frpc Version 0.46.0 ### frps Version 0.46.0 ### System Architecture linux/amd64 ### Configurations ### 这是我的服务端配置 [common] bind_port = 7000 dashboard_port = 7500 quic_max_idle_timeout = 10 [plugin.notify] addr = 127.0.0.1:3578 path = /handler ops = Ping,NewProxy,CloseProxy,NewWorkConn,NewUserConn ### 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 - [X] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:40:38 -06:00
Author
Owner

@zhangboqi commented on GitHub (Jan 6, 2023):

目前来看是30s执行一次,尝试修改了几个参数都没有变化

<!-- gh-comment-id:1373195096 --> @zhangboqi commented on GitHub (Jan 6, 2023): 目前来看是30s执行一次,尝试修改了几个参数都没有变化
Author
Owner

@zhangboqi commented on GitHub (Jan 6, 2023):

我是用的客户端命令行启动的

./frpc tcp \
  --config frpc.ini \
  --server_addr $IP:$PORT \
  --local_ip 127.0.0.1 \
  --local_port $EXPOSE_PORT \
  --remote_port 0 \
  --user $KEY \
  --proxy_name expose-server \
  --log_level info \
  --heartbeat_interval 10 \

我尝试配置了--heartbeat_interval 10
但是提示说没有这个配置,我看官方文档上是有这个配置的

<!-- gh-comment-id:1373203618 --> @zhangboqi commented on GitHub (Jan 6, 2023): ## 我是用的客户端命令行启动的 ``` ./frpc tcp \ --config frpc.ini \ --server_addr $IP:$PORT \ --local_ip 127.0.0.1 \ --local_port $EXPOSE_PORT \ --remote_port 0 \ --user $KEY \ --proxy_name expose-server \ --log_level info \ --heartbeat_interval 10 \ ``` 我尝试配置了--heartbeat_interval 10 但是提示说没有这个配置,我看官方文档上是有这个配置的
Author
Owner

@zhangboqi commented on GitHub (Jan 6, 2023):

所以现在无法确定该参数是否可用 heartbeat_interval

<!-- gh-comment-id:1373203981 --> @zhangboqi commented on GitHub (Jan 6, 2023): 所以现在无法确定该参数是否可用 heartbeat_interval
Author
Owner

@github-actions[bot] commented on GitHub (Feb 6, 2023):

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

<!-- gh-comment-id:1418322996 --> @github-actions[bot] commented on GitHub (Feb 6, 2023): Issues go stale after 30d 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#2601
No description provided.