Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
d2a7370c
Commit
d2a7370c
authored
Oct 02, 2012
by
Ghislain MARY
Browse files
Increase the number of retransmissions during ICE candidates gathering.
parent
67aafca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ice.c
View file @
d2a7370c
...
...
@@ -45,6 +45,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define ICE_DEFAULT_KEEPALIVE_TIMEOUT 15
/* In seconds */
#define ICE_GATHERING_CANDIDATES_TIMEOUT 2500
/* In milliseconds */
#define ICE_MAX_RETRANSMISSIONS 4
#define ICE_MAX_STUN_REQUEST_RETRANSMISSIONS 7
typedef
struct
_Type_ComponentID
{
...
...
@@ -2724,7 +2725,7 @@ static void ice_send_stun_server_checks(IceStunServerCheck *check, IceCheckList
if
(
ice_compare_time
(
curtime
,
check
->
transmission_time
)
>=
0
)
{
check
->
nb_transmissions
++
;
if
(
check
->
nb_transmissions
<=
ICE_MAX_RETRANSMISSIONS
)
{
if
(
check
->
nb_transmissions
<=
ICE_MAX_
STUN_REQUEST_
RETRANSMISSIONS
)
{
check
->
transmission_time
=
ice_add_ms
(
curtime
,
ICE_DEFAULT_RTO_DURATION
);
ice_send_stun_server_binding_request
(
check
->
sock
,
(
struct
sockaddr
*
)
&
cl
->
session
->
ss
,
cl
->
session
->
ss_len
,
check
->
srcport
,
&
check
->
transactionID
,
check
->
nb_transmissions
,
check
->
sock
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment