Skip to content

WebTransport throws NetworkError when creating a new stream on a (very) old connection #1982

Description

@achingbrain

I opened a WebTransport connection to a peer, closed my laptop and forgot about it.

The next day I opened my laptop, the node still thinks it has a connection, connection.newStream() calls .createBidirectionalStream() on the WebTransport object which throws DOMException: Failed to execute 'createBidirectionalStream' on 'WebTransport': No connection..

We should handle this error. Probably abort the connection with the error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions