Skip to main content

Feature request: don't deactivate tunnels on sleep

2 replies [Last post]
ngoodman
ngoodman's picture
Offline
Joined: 07/05/2010

Instead of closing tunnels when the Mac sleeps, can you detect whether the tunnels are alive when the Mac awakens and re-open them if not?

This would be useful to me, because I use tunnels for activities (eg, terminal sessions) that die when the server closes the tunnel due to inactivity while my Mac sleeps. The server in question has a timeout interval of about 2 hours.

I don't expect Meerkat to keep my terminal sessions alive across close/re-open cycles but was hoping it would automate the task of re-opening the tunnels after the server closed them.

Any chance of getting this onto your To Do list? I'm guessing it would complicate the program, since you would have to figure out whether the tunnels were still alive when the Mac awakens. Some combination of the the ssh options ServerAliveCountMax and ServerAliveInterval might do the trick.

Thanks!

0
Justin
Justin's picture
Offline
Joined: 05/28/2008
I'll take a look at this. I'm

I'll take a look at this. I'm assuming you are talking about sleeping and waking the computer in the same location, since I don't think you can reconnect when the network has changed? I've designed the current reconnect more for the situation where you change locations and want the tunnel reestablished.

ngoodman
ngoodman's picture
Offline
Joined: 07/05/2010
Thanks

Thanks, Justin. Yes, my principal use-case is sleeping and waking in the same location.

Want to join the forums? Create an account or login.