mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3824] [Feature Request] xtcp fallback stcp,当P2P NAT穿透成功后能否切换回P2P通道 #3039
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#3039
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 @ldjking on GitHub (Dec 2, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3824
Describe the feature request
wget http://127.0.0.1:9001/44GB.iso
在visitor处下载一个较大的文件做测试。
服务提供者分别构造3种场景:
我想请教一下目前这里面支持优先使用p2p通道吗?在p2p建立成功后,切换回p2p通道?
Describe alternatives you've considered
No response
Affected area
@ldjking commented on GitHub (Dec 4, 2023):
目前我是这样处理的,xtcp不再指定fallback 独立两个进程9000 stcp 9001 xtcp,然后由nginx 9002做负载均衡,
upstream sla {
server 127.0.0.1:9001;
server 127.0.0.1:9000 backup;
}
9001健康检查通过时关闭9000端口上的进程。
@fatedier commented on GitHub (Dec 4, 2023):
完全看不懂
@ldjking commented on GitHub (Dec 6, 2023):
是这样的,P2P连接需要耗时做NAT穿透,几秒到十分钟都有可能,先做了一个stcp的中继通道使用,等P2P连接建立起来再关闭掉中继通道。xtcp的fallback到stcp目前应该是不能再fallforward回到P2P通道上。我目前用nginx 管理9001 9000端口,再用monit监视9001成功后关闭9000端口上的stcp中继通道。
@github-actions[bot] commented on GitHub (Jan 6, 2024):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.