-
Notifications
You must be signed in to change notification settings - Fork 375
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
Reconnect on error #291
Comments
I alse faced the same error. I think it is caused by the network switch from network A to network B , such as when switch from homework to office network . the connection pool from network A will fail to work forever in network B, the only way to fix this issue is "restart the wstunnel client" |
Hello, It is not possible to fix this at wstunnel level. Check this answer for a more detailed explanation #163 (comment) The only solution, is for your OpenVPN to try to reconnect when the connection is closed. Wstunnel client will re-open a new connection. |
And what about error Cannot read from UDP server. Closing server: Remote host forcely disconnect (os error 10054) when I just use Disconnect in OpenVPN? No network issues I just disconnecting. After it OpenVPN can't connect again, only after wstunnel app restarting. |
Would you mind describing the issue? Not sure what does imply |
Disconnect menu item in OpenVPN GUI (RMB on sign in tray - (OVPN Profile Name) - Disconnect). After it a recieve 10054 error and can't connect anymore until restart wstunnel. Yes. it grab seconds but... very hard to explain to other users why they must do it constantly. But if no some lifehack, I will to try ) |
How do you start the clients and server ? |
Server - ExecStart=/usr/local/bin/wstunnel server wss://[::]:443 --restrict-to 5.XX.XXX.XX:753 |
You can try to set a keepalive/hearthbeat of 20sec on your openvpn client and remove If that does not work, i will try to check when i get back from vacation. Let me know. |
No, it's don't solve the problem because |
I see there is an option to periodically send a WebSockets ping frame. Is there an option to disconnect the tunnel if a pong is not received in some time? I think that should work well when tunneling UDP VPNs like Wireguard. |
@CyberShadow it is done autmatically if there 3 un-answered ping. The tunnel is going to close |
Thanks! I think that bit is missing from the documentation. |
Is it possible to add an option to force reconnect to server in case of error/connection temporary issues or so on?
In my case, OpenVPN server drops connection with os error 10054 in case of authentication failure, and I have to stop/start wstunnel client manually. I'd like that wstunnel will try to reconnect, maybe with adjustable cooldown, so end user won't care about wstunnel, just run batch file and leave it alone.
The text was updated successfully, but these errors were encountered: