m00nwtchr opened a new issue, #330:
URL: https://github.com/apache/mina-sshd/issues/330
The only events I ever get out of it is OPENED and TIMEOUT (OPENED shows up
even after I already wait for it once), but the ssh session seems to work fine.
My code:
```java
ClientChannel shell = session.createShellChannel();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
shell.setOut(outputStream);
shell.open();
shell.waitFore(EnumSet.of(ClientChannelEvent.OPENED), Long.MAX_VALUE)); //
Works fine
OutputStream os = shell.getInvertedIn();
os.write("ping -c 3 localhost".getBytes());
os.flush();
shell.waitFor(/* everything but OPENED */, Long.MAX_VALUE); // never exits
```
Same thing regardless if I use other threads, add a timeout, etc.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]