You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Kristjan Habicht (JIRA)" <ji...@apache.org> on 2006/09/20 16:06:23 UTC

[jira] Commented: (DIRMINA-269) stop SocketConnector.connect()

    [ http://issues.apache.org/jira/browse/DIRMINA-269?page=comments#action_12436240 ] 
            
Kristjan Habicht commented on DIRMINA-269:
------------------------------------------

This kind of functionality maybe also needed in a proxy server where the connection to the proxied server should be closed if the proxy client is closing the connection.

> stop SocketConnector.connect()
> ------------------------------
>
>                 Key: DIRMINA-269
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-269
>             Project: Directory MINA
>          Issue Type: Improvement
>    Affects Versions: 0.9.5
>            Reporter: Hooman Valibeigi
>
> Currently I'm using the following logic to connect to server
> ConnectFuture future = socket.connect(SocketAddress, IoHandler);
> future.join();
> try {
>     session = future.getSession();
> } catch (Exception e) {
>     // e.getCause() tells the error
> }
> it waits till the connection is established. but I want the user to be able to stop the connect process while it is not yet established. for example in cases that Connection_Timeout would occur, the user should wait till the time out is finished. is it possible to stop it whenever we desire?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] Commented: (DIRMINA-269) stop SocketConnector.connect()

Posted by kanful <cz...@163.com>.
I also want to know how to shutdown client at once;
-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28DIRMINA-269%29-stop-SocketConnector.connect%28%29-tf2697389s16868.html#a12590170
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.