[ 
http://issues.apache.org/jira/browse/DIRMINA-68?page=comments#action_12422575 ] 
            
Julien Vermillard commented on DIRMINA-68:
------------------------------------------

We could add a reconnect methond in SocketConnector :
"public ConnectFuture reconnect(IoSession session)"

Wich try to recycle the session by connecting it to a new channel socket and 
keep the filterchain and the attachements.

Around that we can implement reconnection policies using a 
SessionDisconnectionHandler placed in the SocketConnector, handling connection 
close or failures and reconnect them.

There is some impact on API : BaseIoSession (for reiniting closefuture), 
SocketConnector for adding session reconnection method, SocketSessionImpl for 
adding the possibility to change the SocketChannel after a reconnection.

WDYT ?


> Automatic reconnect configuration for client channels.
> ------------------------------------------------------
>
>                 Key: DIRMINA-68
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-68
>             Project: Directory MINA
>          Issue Type: Improvement
>            Reporter: Trustin Lee
>         Attachments: MinaFailoverSession.java, ReconnectionFilter.java, 
> ReconnectionFilter.java, ReconnectionFilter.java
>
>
> We need to provide:
> * automatic reconnect property for client sessions
> * reconnect delay
> * max retry count
> Current retry count and client session flag will be stored as session 
> attributes.

-- 
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

        

Reply via email to