mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #3460] [MERGED] xtcp: when connection timeout occurs, support fallback to STCP #4753
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#4753
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?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/3460
Author: @fatedier
Created: 5/29/2023
Status: ✅ Merged
Merged: 5/30/2023
Merged by: @fatedier
Base:
dev← Head:fallback📝 Commits (1)
bbbbd24xtcp: when connection timeout occurs, support fallback to STCP📊 Changes
16 files changed (+230 additions, -68 deletions)
View changed files
📝
client/service.go(+4 -2)📝
client/visitor/stcp.go(+19 -5)📝
client/visitor/sudp.go(+1 -0)📝
client/visitor/visitor.go(+20 -0)📝
client/visitor/visitor_manager.go(+24 -12)📝
client/visitor/xtcp.go(+51 -9)📝
cmd/frpc/sub/root.go(+3 -3)📝
conf/frpc_full.ini(+6 -0)📝
pkg/config/client_test.go(+4 -3)📝
pkg/config/visitor.go(+19 -9)📝
pkg/config/visitor_test.go(+4 -3)📝
pkg/nathole/analysis.go(+15 -15)📝
pkg/nathole/classify.go(+6 -5)📝
pkg/nathole/nathole.go(+1 -1)📝
test/e2e/basic/basic.go(+1 -1)➕
test/e2e/basic/xtcp.go(+52 -0)📄 Description
Summary
🤖 Generated by Copilot at 0d7862a
This pull request adds a new feature of visitor-to-visitor connection redirection and fallback for STCP and XTCP proxies. It also fixes some bugs and improves the performance and reliability of the NAT hole punching process. It refactors some code, adds comments and documentation, and updates the configuration and test files accordingly.
WHY
Walkthrough
🤖 Generated by Copilot at 0d7862a
test/e2e/basic/xtcp.gofile (link)pkg/config/visitor.gofile (link, link)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.