Commit 69b149e7 authored by Youness Alaoui's avatar Youness Alaoui

Fix retransmission timers for reliable sockets

The retransmissions would timeout after 600ms which caused the TCP connections
to timeout before it's able to connect. TCP sockets need to timeout
after 8 seconds instead.
parent 7cb326cf
...@@ -1796,7 +1796,7 @@ int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair) ...@@ -1796,7 +1796,7 @@ int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair)
if (buffer_len > 0) { if (buffer_len > 0) {
if (nice_socket_is_reliable(pair->sockptr)) { if (nice_socket_is_reliable(pair->sockptr)) {
stun_timer_start_reliable(&pair->timer, STUN_TIMER_DEFAULT_TIMEOUT); stun_timer_start_reliable(&pair->timer, STUN_TIMER_DEFAULT_RELIABLE_TIMEOUT);
} else { } else {
stun_timer_start (&pair->timer, STUN_TIMER_DEFAULT_TIMEOUT, stun_timer_start (&pair->timer, STUN_TIMER_DEFAULT_TIMEOUT,
STUN_TIMER_DEFAULT_MAX_RETRANSMISSIONS); STUN_TIMER_DEFAULT_MAX_RETRANSMISSIONS);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment