When does webrtc peerconnection ice state go to 'disconnected'?

1,554 views
Skip to first unread message

Faraz Khan

unread,
Mar 11, 2015, 1:01:16 AM3/11/15
to discuss...@googlegroups.com
Hi all,
Just curious - is it if it gets no STUN keep-alive for 5s? Sometimes we see our ice connection state go to 'disconnected'  when the network seems okay (another peer connection from the same host stays at connected). Just curious as to what might cause a possible 'fake' disconnect. We are on revision 7786.

Kaiduan Xie

unread,
Mar 11, 2015, 11:41:42 AM3/11/15
to discuss...@googlegroups.com
Faraz,

Please see how connection write state changes in 


It looks like when connection state changes from WRITEABLE to UNRELIABLE, the ice state also goes to disconnected.


/Kaiduan

On Wed, Mar 11, 2015 at 1:01 AM, Faraz Khan <faraz...@gmail.com> wrote:
Hi all,
Just curious - is it if it gets no STUN keep-alive for 5s? Sometimes we see our ice connection state go to 'disconnected'  when the network seems okay (another peer connection from the same host stays at connected). Just curious as to what might cause a possible 'fake' disconnect. We are on revision 7786.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

faraz khan

unread,
Mar 11, 2015, 2:11:24 PM3/11/15
to discuss...@googlegroups.com
Kaidun,
Thanks! So seems like its based on whether 5 ping replies got missed and its been > 5s since last stun ping. Thats very unlikely to happen (unless you actually got disconnected). Seems like something on our side causes RTT to spike > 5s, resulting in these stun pings timing out. 

Thanks Kaidun - this is extremely helpful! 

--

---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/py9xwlMQgP8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Faraz Khan
Reply all
Reply to author
Forward
0 new messages