Hi, 

Many thanks for your reply this seems to have resolved the problem with the 
sleeping issue, however now I get an intermittent issue with the following 
error.

Stack Trace:com.jcraft.jsch.JSchException: timeout in wating for rekeying 
proces 
s. 
        at com.jcraft.jsch.Session.write(Session.java:1238) 
        at com.jcraft.jsch.Session.send_newkeys(Session.java:652) 
        at com.jcraft.jsch.Session.connect(Session.java:325) 
        at com.jcraft.jsch.Session.connect(Session.java:160) 
        at mps.ftp.BasicSFTPClient.open(BasicSFTPClient:160) 
        at 
mps.cp.AbstractFilePairInterface.sendFiles(mps.cp.AbstractFilePairInt 
erface:173) 
        at mps.hr.NMISInterface.sendFiles(mps.hr.NMISInterface:299) 
        at mps.hr.NMISInterface.run(mps.hr.NMISInterface:217) 
        at mps.hr.NMISInterfaceControl.sendProgram(NMISInterfaceControl:172) 

I'm not sure what rekeying is going on or how to extend the timeout. Do you 
have any suggestions on how to resolve this error.

Many Thanks


William 

-----Original Message-----
From: Atsuhiko Yamanaka [mailto:y...@jcraft.com] 
Sent: 11 May 2012 08:31
To: Butcher, William non Unisys
Cc: jsch-users@lists.sourceforge.net
Subject: Re: [JSch-users] Problem with jsch staying in sleep state

Hi,

   +-From: "Butcher, William non Unisys" <william.butc...@gb.unisys.com> --
   |_Date: Thu, 10 May 2012 09:54:15 +0100 ________________________________
   |
   |Hi Thanks for the reply, the problem happens on the upload, I have
   |not checked the download as we only need to move files in one
   |direction. That is from a Solaris server to a Windows server. The
   |windows server is running FreeSSHD. When the process hangs I run
   |truss on the process and find that it is just looping in a
   |sleeping state. If there are any tests that you would like me to
   |run then please let me know.

I have not found the reason for it, but how about invoking
    ((ChannelSftp)c).setBulkRequests(1);
before ChannelSftp#put() method?

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to