Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anytls: protocol version 2 #1936

Merged
merged 4 commits into from
Mar 27, 2025
Merged

anytls: protocol version 2 #1936

merged 4 commits into from
Mar 27, 2025

Conversation

anytls
Copy link

@anytls anytls commented Mar 25, 2025

fix: stream close

Fix potential deadlock issues

Update Default Padding Schme

Updated to a more scientific scenario

Protocol version 2

中文说明

The main purpose of this protocol update is to handle tunnel jamming issues and server status feedback. Improve proxy behavior in complex network situations such as #1891.

With this design, the timeout behavior of the AnyTLS proxy will be the same as that of traditional 1:1 proxy such as Shadowsocks, i.e., the proxy software is responsible for the timeout when opening the “user-to-proxy” connection, and the original user agent is responsible for the timeout after opening it.

Since this PR also implements a negotiation mechanism, the v2 feature should only be enabled if both your server and client support version 2. Otherwise, both ends will run according to version 1. Therefore, it will not cause compatibility issues.

@anytls anytls changed the title chore: update anytls anytls: protocol version 2 Mar 26, 2025
@anytls anytls marked this pull request as ready for review March 27, 2025 07:18
@wwqgtxx wwqgtxx merged commit f615346 into MetaCubeX:Alpha Mar 27, 2025
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants