[sctp-dev] How to force reuse of address?

Chris Hegarty chris.hegarty at oracle.com
Thu Jun 13 03:22:58 PDT 2013


On 06/12/2013 06:27 AM, Amit Bhayani wrote:
> Thanks a lot Chris, however I don't see SCTP_REUSE_PORT option in
> http://openjdk.java.net/projects/sctp/javadoc/com/sun/nio/sctp/SctpStandardSocketOption.html

Right, this option was only added to the socket extensions RFC after 
SctpStandardSocketOption was created. I will need to see which platforms 
support it.

-Chris.


> Cheers,
> Amit
>
>
> On Tue, Jun 4, 2013 at 10:01 PM, Chris Hegarty <chris.hegarty at oracle.com
> <mailto:chris.hegarty at oracle.com>> wrote:
>
>     On 06/03/2013 01:54 PM, Amit Bhayani wrote:
>
>         Hi Guys,
>
>         I was looking for way to set the SO_REUSEADDR option for
>         SctpChannel,
>         however didn't find any.
>
>
>     Right, currently the SCTP channels do no support SO_REUSEADDR.
>     Though, I don't see any reason why they could not. That said, there
>     appears to be a more specific SCTP option for this, SCTP_REUSE_PORT.
>
>     Is this something that would benefit you, if it were added?
>
>
>         Basically in my linux OS once the socket goes down for what ever
>         reason,
>         the application tries to bring it up gain in few seconds. However it
>         keeps throwing below exception
>
>         Even after waiting for long time (more than an hour), this exception
>         doesn't go
>
>
>     This is very strange, can you get the output of netstat when in this
>     state?
>
>     -Chris.
>
>
>
>
>         64 [main] ERROR org.mobicents.protocols.sctp.__ManagementImpl -
>         Error
>         while initiating Server=srvr1
>         java.net.BindException: Address already in use
>         at sun.nio.ch.Net.bind0(Native Method)
>         at sun.nio.ch.Net.bind(Net.java:__344)
>         at sun.nio.ch.Net.bind(Net.java:__336)
>         at sun.nio.ch
>         <http://sun.nio.ch>.__SctpServerChannelImpl.bind(__SctpServerChannelImpl.java:__109)
>         at
>         com.sun.nio.sctp.__SctpServerChannel.bind(__SctpServerChannel.java:184)
>         at
>         org.mobicents.protocols.sctp.__ServerImpl.doInitSocketSctp(__ServerImpl.java:182)
>
>
>
>         I am guessing that  SO_REUSEADDR should solve it.
>
>         Do you guys think I am looking at right direction or completely
>         missing it?
>
>         Thanks a ton
>
>         Amit.
>
>


More information about the sctp-dev mailing list