[JSch-users] Fwd: socket timeout not honored when reading from ChannelShell.getInputStream() ?

2013-05-03 Thread Colin Smith
Found the problem (line 1335 of Session.java): if the serverAliveCountMax > 0, then the read timeout received in the exception will never be acted on, since the client will send a keepAlive message to refresh things. I found that calling session.setServerAliveCountMax(0) fixed the problem and t

[JSch-users] Fwd: socket timeout not honored when reading from ChannelShell.getInputStream() ?

2013-05-03 Thread Colin Smith
Dear readers, Thanks to Jcraft for a very useful library! I wish that when I did a read() from a shell input stream that it would respect the timeout that I set with Session.setTimeout(). Has anyone else found that this doesn't appear to work? Is there a workaround, or a lower level interfac

Re: [JSch-users] resuming file transfer using jsch

2013-05-03 Thread Erick Lichtas
If you are using SFTP, the ChannelSftp already has the ability to provide the mode (OVERWRITE, RESUME, APPEND) when calling .get(..) or .put(..) methods. These options allow you to only send/receive remaining bytes of the file. Regards, Erick -Original Message- From: Prakash Babu [mail

Re: [JSch-users] Missing timeout value in ChannelDirectTCPIP.connect() will terminate session after ssh server channel timeout

2013-05-03 Thread Antoine Levy Lambert
Hi, I am using jsch-0.150-rc5 and it seems to actually solve the issue we had with the verify: false error on Java 1.7. A new release of jsch would be good, including availability in the maven central repository. Thanks for the very useful work you are doing. Regards, Antoine On Apr 26, 201

[JSch-users] resuming file transfer using jsch

2013-05-03 Thread Prakash Babu
Hi, We are using jsch to transfer huge files from one host to the another. In case there is ssh connection failure, is there a way to resume this operation from where the copying failed rather than copying the entire file again. thanks, Prakash ---