diff options
author | Youness Alaoui <kakaroto@kakaroto.homelinux.net> | 2014-07-31 19:58:43 -0400 |
---|---|---|
committer | Youness Alaoui <kakaroto@kakaroto.homelinux.net> | 2014-07-31 19:58:52 -0400 |
commit | 69b149e7efce496a4b6444c9623be81d7625c0a5 (patch) | |
tree | 9829ca4ed02f929fe3c10bc6c785b1442e396ab7 /agent/conncheck.c | |
parent | 7cb326cfb8470030bd95842ffdf35e895f462fd8 (diff) | |
download | libnice-69b149e7efce496a4b6444c9623be81d7625c0a5.tar.gz |
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.
Diffstat (limited to 'agent/conncheck.c')
-rw-r--r-- | agent/conncheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/conncheck.c b/agent/conncheck.c index 30c769c..8899011 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -1796,7 +1796,7 @@ int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair) if (buffer_len > 0) { 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 { stun_timer_start (&pair->timer, STUN_TIMER_DEFAULT_TIMEOUT, STUN_TIMER_DEFAULT_MAX_RETRANSMISSIONS); |