-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Sish sometimes doesn't clean connections properly #275
Comments
is:issue is:open pls how to set up sish for linux |
Hi @antoniomika, can you help me to solve this issue? For example I have: But before running sish I see from the console that this domain doesn't exist. After I run sish I see the entry in the console but with listner=0 A thousand thanks. |
Without What you should do is set the ping-client-timeout to something sufficiently short (2 or 3 of the ping intervals is likely appropriate for spotty connections), this would ensure that sish checks' the client periodically to make sure it is online. Then, using that in combination with |
Thanks @antoniomika. I set sish with these parameters:
Do you think they are good for my use case where the tunnel needs to stay up all the time? I have another question: In automatic scripts with systemd I usually use the following command:
Do you have any recommendations for correctly setting the parameters passed to SSH that can help sish? |
Hi @antoniomika
I have some test web servers exposed via sish with the following domains:
The ssh client to start sish is under systemd with automatic restart in case of failure, so that if the virtual machine restarts the connections to sish are established automatically.
Sometimes it happens that, if the VM shuts down in an unclean way (power failure for example), the ssh clients are unable to reconnect to sish. The error that is reported is that the subdomain (ws1, ws2, etc) is already in use.
Even if I try to disconnect the client from the console, it won't reconnect (in the console I see it but with "Listener = 0")
To get everything working properly again I have to restart sish. At this point the clients connect again.
The problem seems to be that sish sometimes doesn't clean up connections correctly (the domain remains registered in memory and is not freed on disconnection)
I'm attaching the sish configuration, maybe I'm making a mistake in setting some parameters to avoid this problem.
Thanks a lot for your support.
The text was updated successfully, but these errors were encountered: