Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.8.0
-
None
Description
AgentTest.testAgentForwarding can hang on a wait because the remote shell gets started earlier than expected. The bug can be triggered by adding a sleep to the client, slowing it down even further vis:
... code to create the client connection ...
channel1.open().await();
// make the client extra slow illustrating the bug
try
catch (Exception e) { }
synchronized (shellFactory.shell)
{ System.out.println("Waiting for remote shell to start"); shellFactory.shell.wait(); }with output: