Skip to content

Max size restriction applied to whole message not just data #11

Description

@alanshaw

For incoming messages the max size restriction is applied to the whole message, not just the data field:

https://github.com/libp2p/pull-mplex/blob/master/src/mplex.js#L84-L93

The spec says that the data field can be up to 1MB so this will be causing false positives for certain message sizes.

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

    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