Hi,

   +-From: Muthu Ramakrishnan <[email protected]> --
   |_Date: Wed, 28 Jan 2009 21:19:11 -0800 (PST) ______________
   |
   |Actually there is no exception. The read thread from the 
   |InputStream of Channel returns -1 at the end of the SFTP file transfer 
   |(not always at times only). Note the SFTP file transfer is different 
   |thread and just using the connected Jsch session to transfer the file. 

Have you tried the latest jsch version?

   |Here I have attached the code where we are reading from 
   |the Channel Input Stream.

   |in_ = channel_.getInputStream();
   |int nRead = in_.read(readBuf_);
   |if( nRead < 0 ) {
   |  log.warning("SecureShellIO.read: EOF");
   |  return -1;
   |}

I'm sorry, but I can not understand what you are doing.
What is 'channel'?  
If it is from 'session.openChannel("sftp")', getInpustStream is not
expected to be invoked and there is no meaning.


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/

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to