Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: libp2p/js-libp2p-mplex
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f5ec195eb182ddbbc68d13b09101756cc7f7edd4
Choose a base ref
...
head repository: libp2p/js-libp2p-mplex
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 21a8f594789a8946836148e506ea97bdb5f6349d
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 23, 2022

  1. fix: apply message size limit before decoding message

    If we apply the message size limit after decoding the message it's
    too late as we've already processed the bad message.
    
    Instead, if the buffer full of unprocessed messages grows to be
    large than the max message size (e.g. we have not recieved a complete
    message under the size limit), throw an error which will cause the
    stream to be reset.
    achingbrain committed Nov 23, 2022
    Configuration menu
    Copy the full SHA
    21a8f59 View commit details
    Browse the repository at this point in the history
Loading