mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #2576] [Feature Request] 一个功能改进建议 #2050
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#2050
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 @maxadc on GitHub (Sep 15, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2576
Describe the feature request
2021/09/15 15:09:12 [W] [control.go:178] [5fa285526f22a871] [xxxxx] start error: port already used
这个问题,想必每个人都遇到过。从网上找,只能找到一个解决方案,就是改个名字。
这根本不是正常的解决方案。
因为,出现这个问题其实是,客户端的非正常frpc退出,而服务器却认为在线。对吧。
告警却不不处理这根本不是正确的处理方法。
改名称,不现实,特别是穿透的场景中,那意味着不但是被连接的客户端要改,访问的节点,有一个算一个,全都要改。
而这种错误,其实是很多的,一旦非法退出,又在很短的时间内连接,100%会出现这个错误。
其实,我认为,这完全可以通过授权token秘钥来解决名字归属的问题。被连接的客户端token正确,就直接更新服务器的打洞信息。没必要报错而不处理。
以上建议供老大参考。谢谢
这个问题对我非常困扰,也是很多人的困扰。我只能写了一个脚本,每次启动都随机一个名词,而且客户端还要,非常不方便。请老大斟酌
Describe alternatives you've considered
No response
Affected area
@fatedier commented on GitHub (Sep 16, 2021):
port already used,字面翻译,端口已被占用,建议尝试更换远端绑定端口。名字冲突和端口冲突不是一回事。