-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Force reset connection #280
Comments
Hi @adhikjoshi , For example:
The flag should clear any references to the subdomain in sish and make it available again when the tunnel is created. We hope that @antoniomika implements this feature. A thousand thanks |
Unfortunately, I don't particularly see the value in this feature. Properly set timeouts and tuned ssh connection settings (ping intervals) should be enough to solve for the automated sentinel usecase (that's what I do). Mind describing the use cases a bit more? Just because it's something I don't see the value in doesn't mean I wouldn't accept a contribution for this! |
Hi @antoniomika I commented positively on the request of @adhikjoshi because I have the problem described in #275 I thought a flag that forced the connection was a good idea to solve the issue because it occurs randomly and is certainly difficult to debug. Unfortunately the only way I have found to solve the problem now is to restart the sish server to clean and reconnect the subdomains that sish says are incorrectly already occupied. My use case would be: for subdomains that are fixed and the connection to sish is handled via systemd script, one could use the I'll write you an example of a systemd service that I use to connect to sish automatically and which often gives me the problem of a subdomain already used:
With the introduction of the -force flag it would become:
or, in case of tcp tunnel:
Furthermore, you could use a Thank you. |
@manprint can you post your sish config/cli args you're using? We should be able to get your experience in a good place without that feature. I use a similar setup (using autossh) and defined ping intervals and never have issues even with spotty networks. |
Hi @antoniomika Are there any parameters I can change to avoid this issue? Thanks
|
Is there a reason you've set your idle timeout to such a long duration? |
Because I would like the connection to remain open while transferring large files via webdav. |
For our usecase, tunnel is permanent and will be running for months. So there will be many network, timeout, restart issues. If we can reset and open again on same URL. We can keep it alive for months. |
Sure, but a restart of the tunnel should establish the connection again. And as long as your ping intervals are set correctly, you shouldn't actually need to "force" reclaim the forward/bind. I'm going to close the other issues around this topic and leave this one if anyone (or I have the time) to implement it. |
The 'force' feature proposal (or any other way to guarantee a subdomain for the tunnel) seems to serve a very practical use case. As per the discussions, it would be particularly beneficial for long running tunnels where there are many potential variables that could lead to a connection breakdown (like network issues, timeouts, system restarts etc.). After such a breakdown, on reconnection, there's a chance that the subdomain may not reliably be the same as before if another connection took over that subdomain in the mean time. This becomes a challenge for maintaining a consistent connection point for incoming traffic. The |
Is anyone working on it? |
I'm not familiar with anyone currently working on this. Would accept any contributions to get this in as well! |
just to give you a bit of context, we have 1000 containers running each with 2-3 ports, and we want to keep the same link for all ports and containers. If the container goes down, we auto-redeploy it, but the SISH URL isn't available as we redeploy it in a second. This is causing more problems. as randomly old links are giving 404. if we can just force close the tunnel on SISH, it will give a 100% guarantee of the same link being available. This is very much needed when used in high-traffic conditions. I hope I have given enough context and made a case for having this feature. |
yes, having same issue. |
You have! I just unfortunately don’t have time to dedicate to this one. If your business is extracting good value from the sish project, I’d implore you to contribute (either via code or monetarily through sponsorship). All work done on this project is provided free of charge for anyone to use. If it’s something that you’d be interested in putting resources towards for a bug bounty, I’d be happy to figure that out as well. |
Happy to sponsor bug bounty :) I've sent you email, do check |
When we make ssh connection and if host if already allocated. It generate random domain and send in response.
Can there be additional parameter
-force
This will close any open sish tunnel and force open with given URL
The text was updated successfully, but these errors were encountered: