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

tcp fastopen sockopt on server #1255

Open
its0ka opened this issue Nov 19, 2024 · 2 comments · May be fixed by #1258
Open

tcp fastopen sockopt on server #1255

its0ka opened this issue Nov 19, 2024 · 2 comments · May be fixed by #1258
Assignees
Labels
enhancement New feature or request

Comments

@its0ka
Copy link

its0ka commented Nov 19, 2024

my server has high rtt (at least 100ms because of a vpn) and it would be nice to have tcp fastopen to minimize latency.
thanks for your work.

@its0ka its0ka added the enhancement New feature or request label Nov 19, 2024
@haruue
Copy link
Collaborator

haruue commented Nov 19, 2024

Hysteria uses a single QUIC connection for multiple proxy streams, and we have already optimised the internal protocol used in Hysteria. It now supports 1xRTT TCP and 0xRTT UDP. So there is nothing more we can do to optimise the latency between Hysteria server and client.

If you're referring to the latency between the Hysteria server and the proxy target, please note that it uses the TCP stack of your operating system. This is implemented by your operating system and not controlled by Hysteria. For example, if you are running your Hysteria server on a Linux box, you should simply enable the TFO options with sysctl net.ipv4.tcp_fastopen=3.

@haruue haruue closed this as completed Nov 19, 2024
@haruue haruue removed the enhancement New feature or request label Nov 19, 2024
@its0ka
Copy link
Author

its0ka commented Nov 19, 2024

@haruue "you should simply enable the TFO options with sysctl net.ipv4.tcp_fastopen=3" that's not enough, curl requires "--tcp-fastopen" argument to use it and xray requires a sockopt to use it. Hysteria doesn't use tcp fastopen and i have "net.ipv4.tcp_fastopen=3"

@haruue haruue reopened this Nov 19, 2024
@haruue haruue added the enhancement New feature or request label Nov 19, 2024
@haruue haruue assigned haruue and unassigned haruue Nov 19, 2024
@haruue haruue linked a pull request Nov 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants