Skip to content

Full stream close guarantee #656

Closed
@vasco-santos

Description

@vasco-santos

js-libp2p should have an utility logic regarding full stream close, where we wait for an EOF and then reset the stream if it does not close quickly enough.

Some inspiration: https://github.com/libp2p/go-libp2p-core/blob/master/helpers/stream.go#L25-L56

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: Good to have, but can wait until someone steps upkind/enhancementA net-new feature or improvement to an existing featurestatus/readyReady to be worked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions