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

Amit Bhayani amit.bhayani at gmail.com
Mon Jun 3 05:54:59 PDT 2013


Hi Guys,

I was looking for way to set the SO_REUSEADDR option for SctpChannel,
however didn't find any.

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


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.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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/sctp-dev/attachments/20130603/0054940b/attachment.html 


More information about the sctp-dev mailing list