Re: [JSch-users] SFTP problem
Status: Alpha
Brought to you by:
ymnk
From: <ym...@jc...> - 2006-10-20 06:31:11
|
Hi, +-From: "Bramhall, Walter" <wa...@pi...> -- |_Date: Wed, 18 Oct 2006 16:30:08 -0500 __________ | |We are using an extension of the SFTP class in which we implement a put |method. |This method works fine on the following configurations: |Windows to Linux Transfer |Linux to Linux Transfer |while we were using jsch-0.1.25.jar |We recently upgraded to the jsch-0.1.29.jar and now the Linux to Linux |Transfer no longer works. |We always transfer a file of the same type that is about 68,200 KB. |On the Windows to Linux transfer the elapsed transfer time is about 1 |minute (This is significantly faster than with the 1.25.jar) |On the Linux to Linux transfer the bytes of the file begin to transfer |and each transfer is slower that the last. I have a 10 minute timeout |and the transfer always times out. How many bytes are transfered, or any bytes are not? |Is there a change between .25 and .29 that I could cause this? Yes, put method has been changed internally. |If I go back to the .25 jar, everything works fine (except slower than |with .29) |More Information: |The 1.26.jar works, the 1.27 jar doesn't Thanks, that is helpful information. There are two types of put method in ChannelSftp, void put(String src, String dst) and OutputStream put(String dst) Which method are you trying? If you are using the former, how about replace following line in ChannelSftp of 0.1.27 boolean dontcopy=true; with boolean dontcopy=false; 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 Fax +81-22-224-8773 Skype callto://jcraft/ |