Hi all,
I use jsch to transfer data via sftp from one server to another.
I noticed that there remain some deamon(?) threads after data-transfers.
...com.jcraft.jsch.Session.run(Session.java:1193)
java.lang.Thread.run(Thread.java:619)....
I close every connection using a own disconnect-method in this way:
public void disconnect() {
if ( sftpConnection != null ) {
sftpConnection.disconnect();
sftpConnection = null;
}
if ( sftpSession != null ) {
sftpSession.disconnect();
sftpSession = null;
}
}
Maybe I do a mistake to close the session properly.
What's the right way to avoid such waiting threads ?
Thanks,
Markus
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users