Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-214

Test com.apache.sshd.AgentTest.testAgentForwarding may hang

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.9.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

      { Thread.sleep(1000); }

      catch (Exception e) { }

      synchronized (shellFactory.shell)

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

      with output:

      Attachments

        1. sshd-214.patch
          1 kB
          Andrew C

        Activity

          People

            gnodet Guillaume Nodet
            fixmo-cagney Andrew C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: