[GH-ISSUE #3338] 关于服务端插件NewUserConn和NewWorkConn的疑问? #2671

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

Originally created by @zhangboqi on GitHub (Mar 1, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3338

Bug Description

很抱歉在Bug类型的Issue中提出这个问题,实在是搜寻各种文档和自己运行尝试也没有弄明白这两个插件机制的区别。
目前我看到的现象是frpc启动时触发NewWorkConn
然后当代理被连接时会同时触发NewWorkConn和NewUserConn
是否有该问题相关的详细说明文档能更详细的讲解这个区别
如能能提出几个使用场景那就更好了
非常感谢~~

frpc Version

0.46.0

frps Version

0.46.0

System Architecture

linux/amd64

Configurations

[common]
bind_port = 7000
dashboard_port = 7500
allow_ports = 10000-50000
[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 (Mar 1, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3338 ### Bug Description 很抱歉在Bug类型的Issue中提出这个问题,实在是搜寻各种文档和自己运行尝试也没有弄明白这两个插件机制的区别。 目前我看到的现象是frpc启动时触发NewWorkConn 然后当代理被连接时会同时触发NewWorkConn和NewUserConn 是否有该问题相关的详细说明文档能更详细的讲解这个区别 如能能提出几个使用场景那就更好了 非常感谢~~ ### frpc Version 0.46.0 ### frps Version 0.46.0 ### System Architecture linux/amd64 ### Configurations ```ini [common] bind_port = 7000 dashboard_port = 7500 allow_ports = 10000-50000 [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 - [x] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:43:23 -06:00
Author
Owner

@blizard863 commented on GitHub (Mar 29, 2023):

跟源码。

<!-- gh-comment-id:1488685126 --> @blizard863 commented on GitHub (Mar 29, 2023): 跟源码。
Author
Owner

@github-actions[bot] commented on GitHub (Apr 29, 2023):

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

<!-- gh-comment-id:1528312977 --> @github-actions[bot] commented on GitHub (Apr 29, 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#2671
No description provided.