Skip to content

sporadic SLD errors #14

@fippo

Description

@fippo

on talky we were seeing very rare errors where setLocalDescription failed without any apparent effect. Here is what happened:

  • remote sent session-initiate without any streams.
  • setRemoteDescription is called. createAnswer (1) is called. Processing of remote actions resumes. PeerConnection is in have-remote-offer state.
  • remote sent source-add. SRD is called. createAnswer (2) is called. PeerConnection is transitioning have-remote-offer -> have-remote-offer
  • createAnswer (1) returns. setLocalDescription is called. PeerConnection goes into stable state. Things work.
  • createAnswer (2) returns. setLocalDescription is called even though state is stable. Boom. But no bad things happened.

Proposed solution (other than continuing to work on the green spinning vortex of processing doom) is to ignore SLD when the state is stable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions