You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "dgü (Jira)" <ji...@apache.org> on 2022/07/20 13:44:00 UTC

[jira] [Updated] (SSHD-1280) Clarification of ConnectFuture#cancel(), AuthFuture#cancel(), OpenFuture#cancel behaviours if connection,auhentication,channel open are already done respectively

     [ https://issues.apache.org/jira/browse/SSHD-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dgü updated SSHD-1280:
----------------------
    Summary: Clarification of ConnectFuture#cancel(), AuthFuture#cancel(), OpenFuture#cancel behaviours if connection,auhentication,channel open are already done respectively  (was: Clarification of ConnectFuture#cancel() and AuthFuture#cancel() behaviours if connection and auhentication are already done respectively)

> Clarification of ConnectFuture#cancel(), AuthFuture#cancel(), OpenFuture#cancel behaviours if connection,auhentication,channel open are already done respectively
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SSHD-1280
>                 URL: https://issues.apache.org/jira/browse/SSHD-1280
>             Project: MINA SSHD
>          Issue Type: Documentation
>    Affects Versions: 2.8.0
>         Environment: Java SE 8, NetBeans IDE 8.2
>            Reporter: dgü
>            Priority: Major
>
> Hello!
>  
> {code:java}
>     /**
>      * Cancels the connection attempt and notifies all threads waiting for this future.
>      */
>     void cancel();
> {code}
> _Ref: [https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/client/future/ConnectFuture.java_]
> {code:java}
>     /**
>      * Cancels the authentication attempt and notifies all threads waiting for this future.
>      */
>     void cancel();
> {code}
> _Ref: [https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/client/future/AuthFuture.java_]
>  According to my tests;
>  * ConnectFuture#cancel() cancels client session connection attempt only if connection is not established yet. If connection is established, it doesn't cancel.
>  * AuthFuture#cancel() cancels client authentication attempt only if authentication is not completed yet. If authentication is completed, it doesn't cancel.
> are these behaviours are expected ? If so, it is possible to update the documentation to rely on these behaviours ?
> Thanks in advance!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org