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

Resume tunnel connection #8

Closed
fegger-ducksify opened this issue Dec 15, 2021 · 2 comments
Closed

Resume tunnel connection #8

fegger-ducksify opened this issue Dec 15, 2021 · 2 comments

Comments

@fegger-ducksify
Copy link

What will be my best option to resume client tunnel, if server get disconnected for a while.
Actually I need to restart client side after an issue.

<3>:2021/12/15 11:55:38.290897 [gotun-127.0.0.1:1080] quic-client: gotun:4430: can't open new stream: Application error 0x0
<3>:2021/12/15 11:55:38.290905 [gotun-127.0.0.1:1080-127.0.0.1:54934] can't connect to gotun:4430: quic: gotun:4430: Application error 0x0

Is that something I could implement easily?

Thanks.

@opencoff
Copy link
Owner

Ah - thanks for pointing out this bug. The solution is in quickdial.go Dial() method. If the server restarts, then the cached session info on the client (q.dest[]) is now stale.

I pushed a patch to teach Dial() to invalidate the session cache when stream creation fails (v0.7.2); pls try and let me know if this worked.

@fegger-ducksify
Copy link
Author

This works great! Thank you for this fix and your quick answer.
cheers

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

No branches or pull requests

2 participants