threading problem with SSH2SFTPClient
Daire Garvey
dairegarvey@yahoo.co.uk
Mon, 3 Feb 2003 07:34:54 -0800 (PST)
--0-1387209163-1044286494=:67122
Content-Type: text/plain; charset=us-ascii
Hi there, I am using the mindterm source to copy lots of files using SSH2SFTPClient. Each file is transferred one at a time in its own connection. So before each transfer I create the SSH2Transport, SSH2Connection and SSH2SFTPClient, and after each transfer I call:
SSH2SFTPClient.terminate();
SSHTransport.normalDisconnect("finished");
It seems that over time the number of threads being used by the process goes up and up - eventually I get an exception because of this. It seems the two calls I am using above are not enough to clean up after myself! :) Could someone please tell me what I should be using to cleanly connect, transfer a file and disconnect over and over again without leaking resources?
Thanks very much in advance for any help!
Best regards,
Daire Garvey.
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--0-1387209163-1044286494=:67122
Content-Type: text/html; charset=us-ascii
<P>Hi there, I am using the mindterm source to copy lots of files using SSH2SFTPClient. Each file is transferred one at a time in its own connection. So before each transfer I create the SSH2Transport, SSH2Connection and SSH2SFTPClient, and after each transfer I call:</P>
<P>SSH2SFTPClient.terminate();<BR>SSHTransport.normalDisconnect("finished");</P>
<P>It seems that over time the number of threads being used by the process goes up and up - eventually I get an exception because of this. It seems the two calls I am using above are not enough to clean up after myself! :) Could someone please tell me what I should be using to cleanly connect, transfer a file and disconnect over and over again without leaking resources?</P>
<P>Thanks very much in advance for any help!</P>
<P>Best regards,</P>
<P>Daire Garvey.</P><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a>
--0-1387209163-1044286494=:67122--