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

ssh timeout option in preferences #66

Open
qwesda opened this Issue Sep 9, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@qwesda

qwesda commented Sep 9, 2015

I usually leave all my windows open when going from home from work. When I want to use the app again it takes about 60 seconds for postico to realise that the connection is gone and to reconnect. This is most likely due to the ssh session stalling and maybe there could be a preference to adjust this.
That is if there is a way at all for you to control this.
I don't think there is a timeout value that would be a great fit for everybody, since it depends on your connection and general network flakiness, so a preference might be a good fit.

@jakob

This comment has been minimized.

Show comment
Hide comment
@jakob

jakob Sep 10, 2015

Owner

A lot of people have complained about this. I think the best solution will be to close all connections when the computer is going to sleep. After wake up, Postico should automatically reconnect as needed.

Owner

jakob commented Sep 10, 2015

A lot of people have complained about this. I think the best solution will be to close all connections when the computer is going to sleep. After wake up, Postico should automatically reconnect as needed.

@jakob

This comment has been minimized.

Show comment
Hide comment
@jakob

jakob Oct 28, 2015

Owner

I've now implemented this in Postico. Postico now disconnects all idle connections just before your Mac sleeps. I've also added an "idle timeout" feature that closes connections after 5 minutes of inactivity. The latter can be disabled in preferences.

I hope this will avoid the majority of lost connections.

You can download the latest prerelease here:
https://eggerapps-downloads.s3.amazonaws.com/postico-1228.zip

Owner

jakob commented Oct 28, 2015

I've now implemented this in Postico. Postico now disconnects all idle connections just before your Mac sleeps. I've also added an "idle timeout" feature that closes connections after 5 minutes of inactivity. The latter can be disabled in preferences.

I hope this will avoid the majority of lost connections.

You can download the latest prerelease here:
https://eggerapps-downloads.s3.amazonaws.com/postico-1228.zip

@jakob jakob added the started label Oct 28, 2015

@qwesda

This comment has been minimized.

Show comment
Hide comment
@qwesda

qwesda Oct 28, 2015

will report how it handles in day to day usage

qwesda commented Oct 28, 2015

will report how it handles in day to day usage

@qwesda

This comment has been minimized.

Show comment
Hide comment
@qwesda

qwesda Oct 29, 2015

Reconnection after wakeup seems way better than before and it is already less of a pain to resume work after changing locations, thanks for that!

Is it be possible for you to listen for system notifications that the primary network interface has changed, i.e. switching from wired to wireless connection? I don't know if notifications like this are accessible to you (especially if the program should be on the app store), but this would be the second most common type of "lost" connections.

qwesda commented Oct 29, 2015

Reconnection after wakeup seems way better than before and it is already less of a pain to resume work after changing locations, thanks for that!

Is it be possible for you to listen for system notifications that the primary network interface has changed, i.e. switching from wired to wireless connection? I don't know if notifications like this are accessible to you (especially if the program should be on the app store), but this would be the second most common type of "lost" connections.

@jakob

This comment has been minimized.

Show comment
Hide comment
@jakob

jakob Oct 29, 2015

Owner

I think these kinds of notifications should be accessible (at least through the reachability API). However, it is probably not as straightforward as with sleep/wake, since a network interface change doesn't necessarily mean anything (for example when you are connected via wifi, and you plugin your ethernet cable, the connection over wifi would still work afterwards)

In any case, this is a good idea, and it is definitely something I have to investigate.

Owner

jakob commented Oct 29, 2015

I think these kinds of notifications should be accessible (at least through the reachability API). However, it is probably not as straightforward as with sleep/wake, since a network interface change doesn't necessarily mean anything (for example when you are connected via wifi, and you plugin your ethernet cable, the connection over wifi would still work afterwards)

In any case, this is a good idea, and it is definitely something I have to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment