[GH-ISSUE #2624] [Feature Request] 能否做到xtcp失败的时候,自动回落到stcp? #2091

Closed
opened 2026-05-05 13:20:36 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @aa51513 on GitHub (Oct 19, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2624

Describe the feature request

由于frpc的网络情况不确定,有时候xtcp能够成功,有时候xtcp无法成功;
为了保证实际使用体验,能否做到xtcp失败的时候,自动回落到stcp?

Describe alternatives you've considered

xtcp设置里,增加一项配置项目,fallback2stcp = ture/false

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @aa51513 on GitHub (Oct 19, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2624 ### Describe the feature request 由于frpc的网络情况不确定,有时候xtcp能够成功,有时候xtcp无法成功; 为了保证实际使用体验,能否做到xtcp失败的时候,自动回落到stcp? ### Describe alternatives you've considered xtcp设置里,增加一项配置项目,fallback2stcp = ture/false ### Affected area - [ ] 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:20:36 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 19, 2021):

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

<!-- gh-comment-id:973575118 --> @github-actions[bot] commented on GitHub (Nov 19, 2021): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Author
Owner

@Bellegar commented on GitHub (Apr 26, 2023):

This would be a great addition to xtcp to make it work like the ICE protocol suggests (if p2p STUN connection fails, then relay TURN is used)

<!-- gh-comment-id:1523213271 --> @Bellegar commented on GitHub (Apr 26, 2023): This would be a great addition to xtcp to make it work like the ICE protocol suggests (if p2p STUN connection fails, then relay TURN is used)
Author
Owner

@Bellegar commented on GitHub (May 25, 2023):

Visited service in xtcp fallback mode will just open both xtcp and stcp services at frpc start.
Visitor will try addition connection using stcp after xtcp connection timeout (it needs to use same local bind port, those simple adding secont visitor service will be incorrect).
It doesn't seem too hard to implement such a coolest thing.
But my GO knowlege is near the 0 for trying to make it works...

<!-- gh-comment-id:1562348921 --> @Bellegar commented on GitHub (May 25, 2023): Visited service in xtcp fallback mode will just open both xtcp and stcp services at frpc start. Visitor will try addition connection using stcp after xtcp connection timeout (it needs to use same local bind port, those simple adding secont visitor service will be incorrect). It doesn't seem too hard to implement such a coolest thing. But my GO knowlege is near the 0 for trying to make it works...
Author
Owner

@fatedier commented on GitHub (May 25, 2023):

We recently carried out a major overhaul of xtcp, which may significantly improve the success rate of penetration. This change will be released in the next few days.

But it will not be compatible with previous versions.

The function of falling back to STCP is planned and will be developed after this major change.

<!-- gh-comment-id:1562356293 --> @fatedier commented on GitHub (May 25, 2023): We recently carried out a major overhaul of xtcp, which may significantly improve the success rate of penetration. This change will be released in the next few days. But it will not be compatible with previous versions. The function of falling back to STCP is planned and will be developed after this major change.
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#2091
No description provided.