I have looked into this a little bit and found that I am in way too deep to fix this myself. I was seeing some really bizare behavior, which I will try to explain here. I downloaded the source to Ant 1.6.5 and jsch 1.20. I made a new eclipse project to debug the code interactively. I set a breakpoint at line 156 of the Channel object. When I run ant in debug mode and break at this point, it behaves as described below. When I choose to watch the ChannelExec.io object and I am watching it during the debug, the problem goes away. There must be something about how the debugger interacts with the debugee JVM that I am not aware of that is causing this behavior. Anyway, I hope this gets us closer to solving the issue.
-Rob Anderson > -----Original Message----- > From: Bill Winspur [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 19, 2005 3:40 PM > To: Ant Users List > Subject: Re: FW: Connection Failures On SSHExec Task > > > Atsuhiko, > > Thanks for your response. Have you/jcraft pursued this > problem any further ? > I moved on to other aspects of my project, after receiving > your note, in the > hope that you might find a workaround for the problem. However, I must > return to the issue of exploiting SSH in my application very soon, > > Bill Winspur > > > Atsuhiko Yamanaka wrote: > > >Hi, > > > > +-From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> -- > > |_Date: Fri, 3 Jun 2005 10:16:53 -0700 __________________________ > > | > > |> > > [sshexec] Connecting to xxx.com:22 > > |> > > [sshexec] root > > |> > > [sshexec] Connecting to xxx.com:22 > > |> > > [sshexec] Connecting to xxx.com:22 > > |> > > [sshexec] Connecting to xxx.com:22 > > |> > > [sshexec] Connecting to xxx.com:22 > > |> > > [sshexec] Connecting to xxx.com:22 > > |> > > [sshexec] Connecting to xxx.com:22 > > |> > > [sshexec] Connecting to xxx.com:22 > > |> > > [sshexec] Connecting to xxx.com:22 > > |> > > [sshexec] Connecting to xxx.com:22 > > > >I have not found the reason yet, but I have remembered that > >OpenSSH's sshd allows to use only 10 sessions simultaneously on > >the single channel. So, it seems each sshexec channel has not > >be disconnected cleanly. > > > >Thanks, > >-- > >Atsuhiko Yamanaka > >JCraft,Inc. > >4-1 OHMACHI 1-CHOME AOBA-KU, > >SENDAI, MIYAGI 980-0804 Japan. > >Tel +81-22-723-2150 > > +1-415-578-3454 > >Fax +81-22-224-8773 > >Skype callto://jcraft/ > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]