<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello,<br><br><br>In stun\usages\timer.h, there are some flags related to STUN retransmission timer.<br><br>/**<br> * The default intial timeout to use for the timer<br> */<br>#define STUN_TIMER_DEFAULT_TIMEOUT 600<br><br>/**<br> * The default maximum retransmissions allowed before a timer decides to timeout<br> */<br>#define STUN_TIMER_DEFAULT_MAX_RETRANSMISSIONS 3<br><br>/**<br> * stun_timer_start:<br> * Starts a STUN transaction retransmission timer.<br> * This should be called as soon as you send the message for the first time on<br> * a UDP socket.<br> * The timeout before the next retransmission is set to @initial_timeout, then<br> * each time a packet is retransmited, that timeout will be doubled, until the<br> * @max_retransmissions retransmissions limit is reached.<br> * total_timeout =  initial_timeout * (2^(max_retransmissions + 1) - 1);<br> */<br><br>Reducing STUN_TIMER_DEFAULT_MAX_RETRANSMISSIONS can significantly reduce the time used in local candidate gathering.<br><br>I am wondering why the equation in timer.h which is used to calculate the total time needed for local candidate gathering does not consider the number of local & remote network interfaces?<br><br> total_timeout =  initial_timeout * (2^(max_retransmissions + 1) - 1);<br><br>Tom<br>     <br>                                          </div></body>
</html>