Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Unclear whether XxxTransport is really closed or not #338

Description

@ibc

In WebRTC 1.0 calling peerconnection.close() is required even if it fires a "failed" "oniceconnectionstatechange" event, otherwise it is not freed.

In ORTC, and with a recent change, a RTCDtlsTransport may fire a "closed" ondtlsstatechange event (without the user having called stop() on it).

Also, a RTCIceTransport may fire "failed" or "closed" onicestatechange...

So, when should the user assume that a RTCDtlsTransport and a RTCIceTransport has been definitely closed (and "freed")?

If for example the remote peer sends me a DTLS close alert and my RTCDtlsTransport fires "closed" ondtlsstatechange, should I call stop() on it or not?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions