Skip to content

Intermittent data loss #375

@achingbrain

Description

@achingbrain

If a datachannel sends data and then immediately closes the connection:

while (...) {
  dc.send(buf)
}

dc.close()

If it sends a lot of small messages then the remote does not always receive all of the data.

I've opened #374 which has a failing test showing the behaviour.

There's a codepen here which allows running the same code in a browser, it works in Chrome and Firefox Nightly so this appears to be a bug in node-datachannel or libdatachannel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions