-
Notifications
You must be signed in to change notification settings - Fork 372
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
Support Failover over multiple remote servers #364
Comments
Hello, I don't think this is going to help you to have a fallback server. The issue is more lying in how "--connection-min-idle" is working. In general, middle boxes does not like at all idle connections and aggressivly terminate them. So it is possible that the connection has been terminated due to being idle for too long, and when wstunnel tries to use it to connect to the server, by sending data it realize it has been terminated. In such scenario not using --connection-min-idle should provides you more success rate, even if it slows down tunnels connection time. |
I think you are right, i have disabled "--connection-min-idle", now i can see better logging. the disconnect and reconnect like following. I suspect item 1), the connection reset by peer (os error 104) likely due to censorship. It happens from time to time. on the item 8), is it likely be similar issue #365 ?, which you have just fixed for v10.1.3 note: i am still using wstunnel 9.4.2
|
Hello, No the bug you mentionned has been introduced in version v10.1.1 so it is unlikely the issue for your version v9.4.2 |
thanks for the help issue closed. |
Describe the feature
it would be good if we can support multiple remote servers for failover.
an example with list of remote server in client side cli options: wss://sv1.abc:443 wss://sv2.abc:443
Describe the reason for such feature
in a highly restricted environment, we saw tunnel failed from time to time.
.... wstunnel::tunnel::client: failed to do websocket handshake with the server ....
Describe alternatives you've considered
we have tried "--connection-min-idle=5", and observed, all sessions frequently hit network error.
2024-10-06T04:49:49.023532Z WARN wstunnel::tcp: Cannot connect to tcp endpoint x.x.x.x:443 reason Network unreachable (os error 101)
overall, the wstunnel + wireguard has preformed well.
The text was updated successfully, but these errors were encountered: