You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Andrew C (JIRA)" <ji...@apache.org> on 2013/02/25 23:18:12 UTC
[jira] [Updated] (SSHD-214) hang in
com.apache.sshd.AgentTest.testAgentForwarding
[ https://issues.apache.org/jira/browse/SSHD-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew C updated SSHD-214:
--------------------------
Attachment: sshd-214.patch
Patch to both illustrate the problem and include basic fix; should probably be stripped of printfs.
> 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
> Attachments: sshd-214.patch
>
>
> 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