Hi, +-From: matsuda <mats...@i4s.co.jp> ------ |_Date: Tue, 05 Jan 2010 19:18:15 +0900 __ | |First, I'll set 2000 for the argument of |Session#setServerAliveInterval(int milliseconds). |But I have a question. |Channel object can only detect the error of TCP/IP socket by this ? |Or TCP/IP socket can be protected from sudden server's disconnection?
In every 2000 millisoconds, the chunk of data will be sent to the remote in the SSH protocol layer. If there is no response from the remote, the JSch will disconnect the session and channels. In this case, Channel#isClosed() becomes "true". 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 Skype callto://jcraft/ ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users