<p dir="ltr">I also think that it should be configurable.<br>
Could we add a property for NiceAgent?</p>
<p dir="ltr">---<br>
Sent from my mobile</p>
<p dir="ltr">Miguel París Díaz<br>
------------------------------------------------------<br>
Computer/Software engineer.<br>
Researcher and architect in <a href="http://www.kurento.org">http://www.kurento.org</a><br>
<a href="http://twitter.com/mparisdiaz">http://twitter.com/mparisdiaz</a><br>
------------------------------------------------------</p>
<div class="gmail_quote">El 2/3/2015 17:04, "Olivier Crête" <<a href="mailto:olivier.crete@collabora.com">olivier.crete@collabora.com</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
There is a timer inside the STUN code, it is currently hard-coded to<br>
start at 600ms and only re-try 3 times. Our observation was that it<br>
would take too long to timeout when the server didn't exist otherwise.<br>
<br>
You can modify it in stun/usages/stuntimer.h by changing<br>
STUN_TIMER_DEFAULT_TIMEOUT and STUN_TIMER_DEFAULT_MAX_RETRANSMISSIONS<br>
<br>
Ideally, I guess they should be made runtime configurable as recommended<br>
by RFC 5389 section 7.2.1.<br>
<br>
Olivier<br>
<br>
On Mon, 2015-03-02 at 16:22 +0100, Miguel París Díaz wrote:<br>
> Hello,<br>
><br>
> I am using libnice 0.1.7 into an environment where STUN requests are<br>
> answered in 6 seconds (approximately).<br>
> This cause that "gathering-done" signal is launched before the srflx<br>
> candidates are gathered or if I set "upnp-timeout" property [1] to<br>
> 15000 mseconds the STUN packets are pushed to the user-data callback<br>
> and the candidates are not detected.<br>
><br>
><br>
> From this observations, are there some hard timeouts into libnice for<br>
> STUN protocol?<br>
><br>
> In this case, how can I solve my problem? The timeouts should be<br>
> configurable, or something like that?<br>
><br>
><br>
> Thanks in advance!!<br>
><br>
><br>
> [1]<br>
> <a href="http://nice.freedesktop.org/libnice/NiceAgent.html#NiceAgent--upnp-timeout" target="_blank">http://nice.freedesktop.org/libnice/NiceAgent.html#NiceAgent--upnp-timeout</a><br>
><br>
> --<br>
> Miguel París Díaz<br>
> ------------------------------------------------------------------------<br>
> Computer/Software engineer.<br>
> Researcher and architect in <a href="http://www.kurento.org" target="_blank">http://www.kurento.org</a><br>
> <a href="http://twitter.com/mparisdiaz" target="_blank">http://twitter.com/mparisdiaz</a><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> nice mailing list<br>
> <a href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br>
--<br>
Olivier Crête<br>
<a href="mailto:olivier.crete@collabora.com">olivier.crete@collabora.com</a><br>
<br>
</blockquote></div>