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

socks5: send empty keepalive msg to avoid triggering MIX_TTL during long downloads #3364

Merged
merged 3 commits into from
Apr 26, 2023

Conversation

octol
Copy link
Contributor

@octol octol commented Apr 26, 2023

Description

Closes: #3215

During long downloads when the traffic can in some cases be entirely unidirectional, we risk trigger MIX_TTL while the connection is still alive.

This PR adds a timer on which empty keepalive messages are sent to keep a regular heartbeat going.

Co-author: @simonwicky, who investigated this issue

NOTE: #3363 was closed due to wrong branch name

Copy link
Contributor

@jstuczyn jstuczyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice one

@octol octol merged commit cc83ecf into develop Apr 26, 2023
@octol octol deleted the jon/feat/socks5-connection-keepalive branch April 26, 2023 14:44
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.

Implement heartbeat messages between socks5 proxy and network requester
2 participants