Hi all,
I hope to start using SFTP capabilities of JSCH but I am running into an
issue that I am hoping you can help me with. I need to be able to determine
if a connection to an SFTP Server is lost in order to implement some
reconnect and retry logic.
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?
Thanks in advance!
Regards,
E R I C K L I C H T A S
Linoma Software
Software Engineer
p. 402.944.4242 x714
f. 402.944.4243
<http://www.linomasoftware.com/> www.LinomaSoftware.com
<http://www.goanywheremft.com/> www.GoAnywhereMFT.com
------------------------------------------------------------------------------
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