DTLS fail detection

41 views
Skip to first unread message

Alexander Abagian

unread,
Jun 13, 2022, 9:16:39 PM (11 days ago) Jun 13
to discuss-webrtc
Hi all,

I encovered that if DTLS packets were filtered somewhere in the net, the oniceconnectionstatechange could receive 'connected' event as everything's is being OK. Is there a way to detect such DTLS fail at the client side ?

Thanks

Alexander Abagian

unread,
Jun 13, 2022, 9:43:09 PM (11 days ago) Jun 13
to discuss-webrtc
It seems I found it myself : both  oniceconnectionstatechange and  onconnectionstatechange must be "connected" for DTLS handshake succeeded.
In the case it is not, the  onconnectionstatechange stays "connecting" for very long time.

вторник, 14 июня 2022 г. в 04:16:39 UTC+3, Alexander Abagian:

Nils Ohlmeier

unread,
Jun 14, 2022, 2:12:36 PM (11 days ago) Jun 14
to discuss-webrtc
If you want to know what specifically is going on with the DTLS part of your connection you should monitor https://www.w3.org/TR/webrtc/#dom-rtcdtlstransport-state

Best
  Nils
Reply all
Reply to author
Forward
0 new messages