Hi,
+-From: "Erick Lichtas" <[email protected]> --
|_Date: Tue, 8 Feb 2011 13:15:33 -0600 _________
|
|I've reviewed the JSCH code and found that an SftpException has an 'id'
|that, at first glance, looks like it can be used to determine if an
|exception is cause by a lost connection (id == 7). Looking into it further,
|however, it appears as if ChannelSftp.SSH_FX_CONNECTION_LOST code is never
|used and most exception come back with ChannelSftp.SSH_FX_FAILURE (id == 4).
|Is there a plan to use these codes more in the future? And are there any
|suggestions as to how I can trap a lost connection?
How about enabling the keep-alive messaging?
Session#setServerAliveInterval(int interval)
Channel#isConnected()
Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users