mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1909] 请问 frp plugin unix_domain_socket 支援abstract吗? #1515
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#1515
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 @kingwilliam on GitHub (Jul 20, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1909
请问 frp client plugin unix_domain_socket 支援abstract吗?
@fatedier commented on GitHub (Jul 20, 2020):
能具体说明一下?场景以及参数的用途。
@kingwilliam commented on GitHub (Jul 20, 2020):
简单描述 就是容易处理 unix socket 的sock file.
节录 https://blog.helong.info/post/2020/03/03/abstract-unix-socket-single-instance/
相比 普通的基于文件系统的 unix socket,abstract namespace unix socket :
因我的frp後就是haproxy, 而haproxy已支援abstract domain socket 如 frp也支援就锦上添花, 免了每次都要先删除旧的sock file.
@fatedier commented on GitHub (Jul 20, 2020):
应该已经支持,在
plugin_unix_path中以@开头,例如plugin_unix_path=@/tmp/test.sock即可。@kingwilliam commented on GitHub (Jul 20, 2020):
已测试 没成功
已跟指示 加入@在path
plugin_unix_path=@/tmp/test.sock
frp client 成功启动
frp client 和 server log 都已看见连接
但就是 不能接驳 frp client-> haproxy
但回复没@时就一切正常
@fatedier commented on GitHub (Jul 21, 2020):
我本地测试没有问题,可以看下日志具体的错误是什么
@kingwilliam commented on GitHub (Jul 21, 2020):
好的 谢谢 我再测试
就是没错误讯息 frp有接驳纪录 但haproxy就什麽也没有
@kingwilliam commented on GitHub (Jul 21, 2020):
试了很多组合还是失败, 暂先放下.
server log, client log没什麽发现, haproxy 没有任何log.
节录: https://www.bookstack.cn/read/HAProxy-2.0-configuration/spilt.2.spilt.5.7ecb46b3ffd31d9b.md
不知有没有关系
@fatedier commented on GitHub (Jul 21, 2020):
有可能,我测试的是自己编写的 golang 的服务端绑定的地址。但是这个取决于 golang 的实现,frp 本身应该比较难做这个适配。
@kingwilliam commented on GitHub (Jul 21, 2020):
谢谢