<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Please create a jira and pull request that makes this modification in a portable way so it can be included.<div class=""><br class=""></div><div class="">Thanks</div><div class="">Mike</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 25, 2016, at 6:57 AM, Luiz Fernando Softov &lt;<a href="mailto:fernando@softov.com.br" class="">fernando@softov.com.br</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:monospace,monospace">Sorry, I mean FreeBSD, FreeBRS is the name of my custom SO (Free BrByte Routing System).</div><div class="gmail_default" style="font-family:monospace,monospace"><br class="">I remove the #ifdef in su.c and make SO_REUSEPORT +&nbsp;SO_REUSEADDR, and now it's working fine.</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-01-24 17:00 GMT-03:00 Michael Jerris <span dir="ltr" class="">&lt;<a href="mailto:mike@jerris.com" target="_blank" class="">mike@jerris.com</a>&gt;</span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">never heard of freebrs, so I'm sure we've done nothing about making sure this works properly.&nbsp; We should be using reuse properly, if your operating system defines this weird or it behaves differently than other common operating systems it may require code fixes to do it properly.&nbsp; If you figure out why, we would be happy to review a pull request to correct this issue.<div class="HOEnZb"><div class="h5"><span class=""></span><br class=""><br class="">On Saturday, January 23, 2016, Luiz Fernando Softov &lt;<a href="mailto:fernando@softov.com.br" target="_blank" class="">fernando@softov.com.br</a>&gt; wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class="gmail_default"><font face="monospace, monospace" class="">Hi all, i'm trying to do a stop then a start in a profile.<br class=""><br class="">After profile stop, the IP/Port doesn't release<br class=""><br class="">I Google it and found this JIRA<br class=""><br class=""><a href="https://freeswitch.org/jira/browse/FS-6603" target="_blank" class="">https://freeswitch.org/jira/browse/FS-6603</a><br class=""><br class="">But this is when i'm making a unload mod_sofia, the port release<br class="">So, only after this i can start the profile<br class=""><br class="">I'm using FreeBRS, and in my other programs I use SO_REUSEPORT<br class=""><br class="">There is a function (</font><span style="font-family:monospace,monospace" class="">su_setreuseaddr</span><span style="font-family:monospace,monospace" class="">) in libs/sofia-sip/libsofia-sip-ua/su/su.c where i found a <br class="">#define&nbsp;</span><span style="font-family:monospace,monospace" class="">SO_REUSEPORT<br class=""><br class="">My question is, there a correct place to define&nbsp;</span><span style="font-family:monospace,monospace" class="">SO_REUSEPORT, or i just add it to make of the system and the&nbsp;</span><span style="font-family:monospace,monospace" class="">SO_REUSEPORT will work?<br class=""></span><span style="font-family:monospace,monospace" class=""><br class="">Or this isn't related with the fact that the port isn't released by the module when i make a stop? If not, how can i make to stop and start profile without problem?<br class=""></span></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div><br class=""></div></body></html>