Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 222178

Summary: [SSH2] decreasing the "keep alive" time for reusing the ssh session.
Product: [Eclipse Project] Platform Reporter: Atsuhiko Yamanaka <ymnk>
Component: CVSAssignee: platform-cvs-inbox <platform-cvs-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
This patch will allow users to control the interval for keep-alive none

Description Atsuhiko Yamanaka CLA 2008-03-11 04:16:16 EDT
Build ID: I20070809-1105

Steps To Reproduce:
A report from platform-cvs-dev[1]

I have a client that has a CVS / SSH server that requires a password
generated by a RSA hardware token.   Using Eclipse / CVS  works, but
requires that the use supply a new password every time that a Team/CVS
request is made.

Actually, the behavior is that several requests can be made reusing
the same SSH session, but if the session is inactive for a period of
time, then it is terminated and a new one is required.

Is there a way to increase the "keep alive" / time for reusing the
same SSH session?  I would even be willing to hack the source code if
someone could point me to the general area.


[1] http://dev.eclipse.org/mhonarc/lists/platform-cvs-dev/msg00480.html
Comment 1 Atsuhiko Yamanaka CLA 2008-03-11 04:21:48 EDT
The ssh2 client included in Eclipse SDK 3.3 has supported
such a keep-alive mechanism(it says ServerAlive).
In beeing used in CVS plug-in, some message will be sent to the remote
sshd in every 60 seconds and the connection will be dropped 
if there is no response.  It seems the interval '60 seconds' is too long 
for that user.
Comment 2 Atsuhiko Yamanaka CLA 2008-03-11 04:29:45 EDT
Created attachment 92133 [details]
This patch will allow users to control the interval for keep-alive

* the text field for "KeepAlive" will be added at
  Window > Preferences... > General > Network Conections > SSH2 > General

* the default value is '0'(no keep-alive)

* org.eclipse.jsch.core will retrieve the value from the above text field
  and enable or disable the keep-alive mechanism according to the setting.
Comment 3 Atsuhiko Yamanaka CLA 2008-03-11 04:35:01 EDT
It seems that the reporter[1] has not been interested
in this issue any more.  So, I'll close this entry.
If somebody thinks the the attached patch is useful,
please reopen it.

[1] http://dev.eclipse.org/mhonarc/lists/platform-cvs-dev/msg00480.html