Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The sample code in teh JavaDoc section of org/apache/sshd/SshClient.java (line 104...) generates compilation errors.
Please find the diff below:
@@ -105,7 +105,7 @@
- SshClient client = SshClient.setUpDefaultClient();
- client.start();
- try {
- * ClientSession session = client.connect(host, port);
+ * ClientSession session = client.connect(host, port).await().getSession();
*
- int ret = ClientSession.WAIT_AUTH;
- while ((ret & ClientSession.WAIT_AUTH) != 0)
{
@@ -125,7 +125,7 @@
* channel.setErr(new NoCloseOutputStream(System.err));
* channel.open();
* channel.waitFor(ClientChannel.CLOSED, 0);
- * session.close();
+ * session.close(false);
* }
finally
{ * client.stop(); * }