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

Fix keepalive #315

Merged
merged 1 commit into from
Jan 31, 2022
Merged

Fix keepalive #315

merged 1 commit into from
Jan 31, 2022

Conversation

Taknok
Copy link
Contributor

@Taknok Taknok commented Nov 27, 2021

Hi,

Related issue: #314

In a nutshell: The client keep-alive configuration is not passed to tunnel config. Thus, the tunnel does not enter the keep-alive function.

Solution:
Pass the client config keepalive to the tunnel config.

Examples:

go build && ./chisel client --keepalive 1s -v --auth XXX https://server.com socks

Before (exemple-before branch):

2021/11/27 13:15:36 client: Connecting to wss://server.com:443
2021/11/27 13:15:36 client: tun: proxy#127.0.0.1:1080=>socks: Listening
2021/11/27 13:15:36 client: tun: Bound proxies
2021/11/27 13:15:37 client: Handshaking...
2021/11/27 13:15:37 client: Sending config
2021/11/27 13:15:37 client: Connected (Latency 49.781634ms)
2021/11/27 13:15:37 client: tun: SSH connected

After (exemple-after branch):

021/11/27 13:18:47 client: Connecting to wss://server.com:443
2021/11/27 13:18:47 client: tun: proxy#127.0.0.1:1080=>socks: Listening
2021/11/27 13:18:47 client: tun: Bound proxies
2021/11/27 13:18:47 client: Handshaking...
2021/11/27 13:18:48 client: Sending config
2021/11/27 13:18:48 client: Connected (Latency 45.692712ms)
2021/11/27 13:18:48 client: tun: SSH connected
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
^C

Thank you for this amazing tool !

Pass the client config keepalive to the tunnel config.
@jpillora jpillora merged commit a47b1b3 into jpillora:master Jan 31, 2022
@jpillora
Copy link
Owner

Thanks!

@Taknok Taknok deleted the keepalive branch January 31, 2022 13:35
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