Hi,
+-From: "CHEN Xiaolei A" <[email protected]> -- |_Date: Fri, 10 Dec 2010 16:09:41 +0800 _________________________ | | So I want to know whether there is some method in JSCH to set |"TIMEOUT" for a sftp session, once reaching the time, corresponding |session and sftpchannel will close automatically. To close it automatically on the end of your program, how about using Session#setDaemonThread method? ... | session.setUserInfo(ui); session.setDaemonThread(true); | session.connect(); ... 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/ Twitter: http://twitter.com/ymnk ------------------------------------------------------------------------------ _______________________________________________ JSch-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jsch-users
