Andrew C created SSHD-214:
-----------------------------

             Summary: hang in com.apache.sshd.AgentTest.testAgentForwarding
                 Key: SSHD-214
                 URL: https://issues.apache.org/jira/browse/SSHD-214
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 0.8.0
            Reporter: Andrew C


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 { Thread.sleep(1000); } catch (Exception e) { }

        synchronized (shellFactory.shell) {
            System.out.println("Waiting for remote shell to start");
            shellFactory.shell.wait();
        }

with output:


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to