Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: mark connections with limits as transient #1890

Merged
merged 9 commits into from
Jul 26, 2023

Commits on Jul 25, 2023

  1. feat: mark connections with limits as limited

    Some connections have resources limits imposed on them, such as
    circuit relay connections.
    
    When this is the case, the connection will have a `.limited` boolean
    property set to true.
    
    By default any attempt to run a protocol over a limited connection
    will throw (outgoing) or be reset (incoming), this is to prevent, for
    example, bitswap exceeding the connection transfer limit and causing
    the connection to be closed by the relay server when it should be
    reserved for the WebRTC SDP exchange.
    
    Protocols can opt-in to being run over limited connections by specifying
    a flag during `libp2p.handle` (incoming) and `connection.openStream`
    (outgoing).
    achingbrain committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    587e876 View commit details
    Browse the repository at this point in the history
  2. chore: linting

    achingbrain committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    5b18228 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6511308 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. chore: fix tests

    achingbrain committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    740fb2f View commit details
    Browse the repository at this point in the history
  2. chore: change log format

    achingbrain committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    7df2cbe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    155a69d View commit details
    Browse the repository at this point in the history
  4. chore: fix test

    achingbrain committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    fc62809 View commit details
    Browse the repository at this point in the history
  5. chore: fix webrtc test

    achingbrain committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    238fc2f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    987c34c View commit details
    Browse the repository at this point in the history