Re: sftp hanging on disconnect
Alberto Ferrero <[email protected]>
| Newsgroups | gmane.comp.java.sshtools.user |
|---|---|
| Message-ID | <[email protected]> |
<matt.pierce <at> colinx.com> writes: > > > I am using sshtools sftpclient to sftp > from Linux to Windows (running Vandyke). My app is constantly active > over this channel, but about once every few weeks one of the calls to Sftpclient > never returns. The call is to Sftpclient.ls(). No exception is thrown; below is a snippet > of the logs. This all occurs during one call to ls(). The "Waiting > for new messages" at the end repeats every 5 seconds until I bounce > the vm. The problem seems to be that a SftpMessageStore never gets > close() called on it. I know from the last two lines of non-repeating > debug that stop() is called on the Transport Protocol which should call > close on all registered MessageStore objects. This makes it seem > that either I somehow have an unregistered MessageStore or a new one is > created after stop() is called on the Transport Protocol. My primary interest is finding out why > sftpclient does not return; secondarily I would like to know why > the disconnect happened.I would greatly appreciate any help. Hi Matt, have you understood the issue ? I have a similar situation (a client sometimes hangs) and I don't know how to stop the loop. Thanks, -- alberto ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click