Hi,

Sorry for my long long delay.

On Tue, Mar 29, 2016 at 9:17 PM, Thomas Küstermann
<thokuest...@outlook.com> wrote:
> I don't know what is causing this. After the "timeout" occurred processing 
> continued until the next outage. I tried to reproduce the "bug" with 
> Openssh's sftp command and the -R (num_requests) argument which I think is 
> meant by "sending multiple requests at any one time". As Openssh's sftp works 
> well I compared the ChannelSftp implementation with what is in sftp-client.c. 
> The only obvious difference I found is the "rq.count()==0" condition in 
> "ChannelSftp.get(String, SftpProgressMonitor, long).new InputStream() 
> {...}.read(byte[], int, int)". Removing the condition fixes the issue for me.
>
> Can this be considered as a bug? Is this something eligible for a next 
> version of JSCH?
>
> The following patch is based upon jsch-0.1.53:
>
> --- src/com/jcraft/jsch/ChannelSftp.java
> +++ src/com/jcraft/jsch/ChannelSftp.java
> @@ -1374,17 +1374,16 @@
>                 len=1024;
>               }
>
> -             if(rq.count()==0) {
...

As you have suggested, we will remove "if(rq.count()==0)" check in the
next release.


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to