Max size restriction applied to whole message not just data
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- networking
Research direction
Start with src/mplex.js lines 84-93 and compare the incoming-message size check with the mplex specification's 1MB data-field limit. Confirm that message overhead does not trigger the restriction, and verify the resulting behavior with the repository's existing checks or test suite.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- JavaScript
- Stars
- 5
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libp2p/pull-mplex
-
missing moduleOpen
Difficulty 1/5 Under an hour Newbie friendliness 50/100
libp2p/pull-mplex#14 ·
All issues in libp2p/pull-mplex
Similar issues
-
area:docs bug triage:confirmed
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Cotal-AI/Cotal#2875 · 1 comment ·
Maintainers usually reply within 1 day
-
[Feature]:Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Uuriko/project-room#1554 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 4 days
-
automated issue report
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
lirantal/discoprint#36 ·
Maintainers usually reply within 1 day