Bug 155026 - [ssh][nls] sessions time out after inactivity - request keepalive
Summary: [ssh][nls] sessions time out after inactivity - request keepalive
Status: CLOSED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Martin Oberhuber CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: bugday
Depends on: 165432
Blocks: 218880 219936
  Show dependency tree
 
Reported: 2006-08-24 08:57 EDT by Martin Oberhuber CLA
Modified: 2008-02-27 06:50 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2006-08-24 08:57:39 EDT
RSE ssh sessions to build.eclipse.org time out after 1 hour or so of inactivity.

When the user tries to use RSE after that time, e.g. type somehting in the ssh shell, there is a short delay and then an error message "connection...canceled" is shown.

RSE should support optional ssh keepalives in order to keep the session active in spite of inactivity.
Comment 1 Martin Oberhuber CLA 2006-08-24 08:58:51 EDT
As another option, RSE could also ask the user to automatically reconnect (and thus keep the current state of the session intact).
Comment 2 Martin Oberhuber CLA 2006-11-10 17:53:17 EST
This will be fixed when a new version of jsch becomes part of the Platform.
The new jsch has some API for keepalives.
Comment 3 Martin Oberhuber CLA 2007-05-28 00:35:25 EDT
Platform won't get it before RC3
Comment 4 Martin Oberhuber CLA 2007-09-26 19:15:30 EDT
This requires an NLS change for the UI to allow specifying the keepalive timeout (supposedly as a PropertySet). Thus assigning 3.0
Comment 5 Martin Oberhuber CLA 2008-01-24 08:47:53 EST
Keepalive was added in JSch 0.1.29:
http://sourceforge.net/mailarchive/forum.php?thread_name=200608251811.DAA28235%40jcraft.com&forum_name=jsch-users

- feature: KeepAlive is implemented and
           Session#setServerAliveInterval(int interval) and
           Session#setServerAliveCountMax(int count) are added.

targeting M5 since this feature is the one I'm currently missing most (I hate to relogin every day).
Comment 6 Martin Oberhuber CLA 2008-02-13 16:30:46 EST
Added a hard-coded keepalive interval of 5 minutes:
   RSE: SshConnectorService.java
   Terminal: SshConnection.java

Opened bug 218880 for making this user-configurable.
Comment 7 Martin Oberhuber CLA 2008-02-27 06:50:52 EST
Verified with 3.0.2 canidate on Linux.

After 1 day of inactivity, the 2.0.2 terminal connection via ssh to dev.eclipse.org was disconnected, while the 2.0.3 one was still alive.