mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3852] 当类型为 UDP 且 使用插件 unix_domain_socket 时 frpc 没有将数据 转发到 unixPath 指定的 socket #3059
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3059
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xqzr on GitHub (Dec 15, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3852
Bug Description
frpc
[T]日志显示 收到了 UDP 数据,但未转发给 Nginx 监听的 unix domain socket,从而 Nginx 的 debug 级别日志,未发现quic和http3关键词。如果使用
localIP、localPort,而不使用unix_domain_socket插件,可从 Nginx debug 日志中 发现quic和http3关键词。frpc Version
0.53.0
frps Version
0.53.0
System Architecture
linux/amd64
Configurations
Logs
Steps to reproduce
frpc.jsonnginx.confAffected area
@fatedier commented on GitHub (Dec 18, 2023):
不支持,或者说所有的插件都不支持 UDP。
@xqzr commented on GitHub (Dec 18, 2023):
frpc 没有提示任何错误
@fatedier commented on GitHub (Dec 19, 2023):
UDP 的处理都比较特殊,如果要打印错误,每一个数据包都会有一条报错,很容易产生太多无意义的内容。
当前 UDP 的实现性能也比较差,没有太多优化,有什么想法也可以提,汇总到之后重构的时候搞新的方案。
@xqzr commented on GitHub (Dec 19, 2023):
UDP 理论上可以使用
unix_domain_socket插件,希望能够支持它😊Nginx 实现了 QUIC(UDP) 监听 Unix 域套接字
@fatedier commented on GitHub (Dec 19, 2023):
那就不是简单的转发了,而是需要一个上层的管理协议,例如 QUIC,没办法简单地做到。
只能说,以后可以考虑,可选地配置成使用 QUIC 解析,然后走 QUIC 的处理流程,这样才能转发到其他类似 TCP 的流协议。
@xqzr commented on GitHub (Dec 19, 2023):
不需要解析 QUIC
QUIC 基于 UDP,能够转发 UDP 到 Unix 域套接字 即可
@github-actions[bot] commented on GitHub (Jan 19, 2024):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.