You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a WebRTC peer using this crate, making an offer and acting as a server during the TLS handshake. This peer is meant to talk with an instance of Kurento Media Server.
The handshake fails with the following error:
[2024-03-12T13:56:36Z TRACE webrtc_dtls::conn] server: <- Alert LevelFatal: IllegalParameter
[2024-03-12T13:56:36Z TRACE webrtc_dtls::conn] server: read_and_buffer return err: Alert is Fatal or Close Notify
Upon further inspection, it looks like the server (using webrtc-rs, ip 172.18.0.4) sends two Hello Verify Requests, and also sends Flight 4 right after the second Hello Verify Request:
The other peer (172.18.0.3) responds correctly to the first Hello Verify Request.
It seems that we end up in an inconsistent state, where Flight 2 is erroneously sent a second time before waiting for a response from the client, but Flight 4 is sent as well once the Client Hello is acknowledged. Some relevant logs:
I am not sure what is specific about my setup, I am working from the examples in the repo to assert if this crate fits my needs. I could try to provide a minimal setup but it involves a Kurento deployment and a custom signaling server.
I've tried using engine.set_answering_dtls_role(DTLSRole::Client) as a workaround, to no avail.
The text was updated successfully, but these errors were encountered:
I've bypassed Flight 2 locally for a quick test, I still encounter the IllegalParameter alert, so the issue might be something else. I'll leave the issue open in case the behavior described above is incorrect despite that.
I am writing a WebRTC peer using this crate, making an offer and acting as a server during the TLS handshake. This peer is meant to talk with an instance of Kurento Media Server.
The handshake fails with the following error:
Upon further inspection, it looks like the server (using webrtc-rs, ip 172.18.0.4) sends two
Hello Verify Request
s, and also sends Flight 4 right after the secondHello Verify Request
:The other peer (172.18.0.3) responds correctly to the first
Hello Verify Request
.It seems that we end up in an inconsistent state, where Flight 2 is erroneously sent a second time before waiting for a response from the client, but Flight 4 is sent as well once the
Client Hello
is acknowledged. Some relevant logs:I am not sure what is specific about my setup, I am working from the examples in the repo to assert if this crate fits my needs. I could try to provide a minimal setup but it involves a Kurento deployment and a custom signaling server.
I've tried using
engine.set_answering_dtls_role(DTLSRole::Client)
as a workaround, to no avail.The text was updated successfully, but these errors were encountered: