You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Vinod Panicker (JIRA)" <ji...@apache.org> on 2005/06/18 12:17:23 UTC

[jira] Created: (DIRMINA-64) SocketAcceptor needs to expose setReuseAddress()

SocketAcceptor needs to expose setReuseAddress()
------------------------------------------------

         Key: DIRMINA-64
         URL: http://issues.apache.org/jira/browse/DIRMINA-64
     Project: Directory MINA
        Type: Improvement
    Versions: 0.9    
 Environment: All
    Reporter: Vinod Panicker
 Assigned to: Trustin Lee 


The SocketAcceptor currently doesn't expose setReuseAddress() functionality.  This is extremely necessary for server implementations.  It would be great if a SocketAcceptor could expose a SocketSessionConfig type of class.

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


[jira] Commented: (DIRMINA-64) SocketAcceptor needs to expose setReuseAddress()

Posted by "Vinod Panicker (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-64?page=comments#action_12314863 ] 

Vinod Panicker commented on DIRMINA-64:
---------------------------------------

On the ServerSocketChannel.  Taking an example where a server goes down for some reason, and an automated script tries to bring it back up again, the server needs to be able to bind to the same "well-known" port.  If it is in TIME_WAIT state, as it most probably will be, the server will not be able to bind to the port unless setReuseAddress is set to true.

The client side implementation is fine.

> SocketAcceptor needs to expose setReuseAddress()
> ------------------------------------------------
>
>          Key: DIRMINA-64
>          URL: http://issues.apache.org/jira/browse/DIRMINA-64
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.7.2, 0.7.1, 0.7
>  Environment: All
>     Reporter: Vinod Panicker
>     Assignee: Trustin Lee
>      Fix For: 0.7.3

>
> The SocketAcceptor currently doesn't expose setReuseAddress() functionality.  This is extremely necessary for server implementations.  It would be great if a SocketAcceptor could expose a SocketSessionConfig type of class.

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


[jira] Closed: (DIRMINA-64) SocketAcceptor needs to expose setReuseAddress()

Posted by "Vinod Panicker (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-64?page=all ]
     
Vinod Panicker closed DIRMINA-64:
---------------------------------


Meets the requirements.  Thanks.

> SocketAcceptor needs to expose setReuseAddress()
> ------------------------------------------------
>
>          Key: DIRMINA-64
>          URL: http://issues.apache.org/jira/browse/DIRMINA-64
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.7.2, 0.7.1, 0.7
>  Environment: All
>     Reporter: Vinod Panicker
>     Assignee: Trustin Lee
>      Fix For: 0.9

>
> The SocketAcceptor currently doesn't expose setReuseAddress() functionality.  This is extremely necessary for server implementations.  It would be great if a SocketAcceptor could expose a SocketSessionConfig type of class.

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


[jira] Updated: (DIRMINA-64) SocketAcceptor needs to expose setReuseAddress()

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-64?page=all ]

Trustin Lee updated DIRMINA-64:
-------------------------------

    Fix Version: 0.9
                     (was: 0.7.3)

This issue has been resolved in 0.9 stream because the solution is not that simple to apply 

> SocketAcceptor needs to expose setReuseAddress()
> ------------------------------------------------
>
>          Key: DIRMINA-64
>          URL: http://issues.apache.org/jira/browse/DIRMINA-64
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.7.2, 0.7.1, 0.7
>  Environment: All
>     Reporter: Vinod Panicker
>     Assignee: Trustin Lee
>      Fix For: 0.9

>
> The SocketAcceptor currently doesn't expose setReuseAddress() functionality.  This is extremely necessary for server implementations.  It would be great if a SocketAcceptor could expose a SocketSessionConfig type of class.

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


[jira] Commented: (DIRMINA-64) SocketAcceptor needs to expose setReuseAddress()

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-64?page=comments#action_12314864 ] 

Trustin Lee commented on DIRMINA-64:
------------------------------------

Then what do you think about setting ReuseAddress to true by default and not providing any configurations?

> SocketAcceptor needs to expose setReuseAddress()
> ------------------------------------------------
>
>          Key: DIRMINA-64
>          URL: http://issues.apache.org/jira/browse/DIRMINA-64
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.7.2, 0.7.1, 0.7
>  Environment: All
>     Reporter: Vinod Panicker
>     Assignee: Trustin Lee
>      Fix For: 0.7.3

>
> The SocketAcceptor currently doesn't expose setReuseAddress() functionality.  This is extremely necessary for server implementations.  It would be great if a SocketAcceptor could expose a SocketSessionConfig type of class.

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


[jira] Updated: (DIRMINA-64) SocketAcceptor needs to expose setReuseAddress()

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-64?page=all ]

Trustin Lee updated DIRMINA-64:
-------------------------------

    Fix Version: 0.7.3
        Version: 0.7.2
                 0.7.1
                 0.7
                     (was: 0.9)

> SocketAcceptor needs to expose setReuseAddress()
> ------------------------------------------------
>
>          Key: DIRMINA-64
>          URL: http://issues.apache.org/jira/browse/DIRMINA-64
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.7.2, 0.7.1, 0.7
>  Environment: All
>     Reporter: Vinod Panicker
>     Assignee: Trustin Lee
>      Fix For: 0.7.3

>
> The SocketAcceptor currently doesn't expose setReuseAddress() functionality.  This is extremely necessary for server implementations.  It would be great if a SocketAcceptor could expose a SocketSessionConfig type of class.

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


[jira] Resolved: (DIRMINA-64) SocketAcceptor needs to expose setReuseAddress()

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-64?page=all ]
     
Trustin Lee resolved DIRMINA-64:
--------------------------------

    Resolution: Fixed

Please close this issue if it is considered fixed.

> SocketAcceptor needs to expose setReuseAddress()
> ------------------------------------------------
>
>          Key: DIRMINA-64
>          URL: http://issues.apache.org/jira/browse/DIRMINA-64
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.7.2, 0.7.1, 0.7
>  Environment: All
>     Reporter: Vinod Panicker
>     Assignee: Trustin Lee
>      Fix For: 0.9

>
> The SocketAcceptor currently doesn't expose setReuseAddress() functionality.  This is extremely necessary for server implementations.  It would be great if a SocketAcceptor could expose a SocketSessionConfig type of class.

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


[jira] Commented: (DIRMINA-64) SocketAcceptor needs to expose setReuseAddress()

Posted by "Vinod Panicker (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-64?page=comments#action_12314866 ] 

Vinod Panicker commented on DIRMINA-64:
---------------------------------------

I'm OK with that w.r.t my current need, but it could cause certain problems due to negligence.  eg - two instances of the server might be started by mistake and both would be getting data from the network.  And keeping this as default might break someone's current implementation that depends on this being false.  I'd suggest not changing default behavior - i.e. the standard JDK approach.

> SocketAcceptor needs to expose setReuseAddress()
> ------------------------------------------------
>
>          Key: DIRMINA-64
>          URL: http://issues.apache.org/jira/browse/DIRMINA-64
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.7.2, 0.7.1, 0.7
>  Environment: All
>     Reporter: Vinod Panicker
>     Assignee: Trustin Lee
>      Fix For: 0.7.3

>
> The SocketAcceptor currently doesn't expose setReuseAddress() functionality.  This is extremely necessary for server implementations.  It would be great if a SocketAcceptor could expose a SocketSessionConfig type of class.

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


[jira] Commented: (DIRMINA-64) SocketAcceptor needs to expose setReuseAddress()

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-64?page=comments#action_12314849 ] 

Trustin Lee commented on DIRMINA-64:
------------------------------------

Should a 'setReuseAddress() call be invoked to ServerSocketChannel or SocketChannel?  If it should be called to SocketChannel, doesn't calling Session.getConfig().setReuseAddress(true) in sessionCreated() work?

> SocketAcceptor needs to expose setReuseAddress()
> ------------------------------------------------
>
>          Key: DIRMINA-64
>          URL: http://issues.apache.org/jira/browse/DIRMINA-64
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.7.2, 0.7.1, 0.7
>  Environment: All
>     Reporter: Vinod Panicker
>     Assignee: Trustin Lee
>      Fix For: 0.7.3

>
> The SocketAcceptor currently doesn't expose setReuseAddress() functionality.  This is extremely necessary for server implementations.  It would be great if a SocketAcceptor could expose a SocketSessionConfig type of class.

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