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

Add libp2p-request-response protocol. #1596

Merged
merged 21 commits into from
Jun 29, 2020

Commits on May 30, 2020

  1. Add the libp2p-request-response protocol.

    This crate provides a generic implementation for request/response
    protocols, whereby each request is sent on a new substream.
    Roman S. Borschel committed May 30, 2020
    Configuration menu
    Copy the full SHA
    489a8ae View commit details
    Browse the repository at this point in the history
  2. Fix OneShotHandler usage in floodsub.

    Roman S. Borschel committed May 30, 2020
    Configuration menu
    Copy the full SHA
    521fe2d View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2020

  1. Custom ProtocolsHandler and multiple protocols.

      1. Implement a custom ProtocolsHandler instead of using
         the OneShotHandler for better control and error handling.
         In particular, all request/response sending/receiving is
         kept in the substreams upgrades and thus the background
         task of a connection.
      2. Support multiple protocols (usually protocol versions)
         with a single `RequestResponse` instance, with
         configurable inbound/outbound support.
    Roman S. Borschel committed Jun 8, 2020
    Configuration menu
    Copy the full SHA
    89ea70a View commit details
    Browse the repository at this point in the history
  2. Small doc clarification.

    Roman S. Borschel committed Jun 8, 2020
    Configuration menu
    Copy the full SHA
    e2a596d View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2020

  1. Configuration menu
    Copy the full SHA
    8128079 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2020

  1. Configuration menu
    Copy the full SHA
    054811d View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2020

  1. Configuration menu
    Copy the full SHA
    0b96c78 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2020

  1. Configuration menu
    Copy the full SHA
    eb9c02d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    52d47ec View commit details
    Browse the repository at this point in the history
  3. Update protocols/request-response/Cargo.toml

    Co-authored-by: Toralf Wittner <tw@dtex.org>
    romanb and twittner committed Jun 25, 2020
    Configuration menu
    Copy the full SHA
    54f56d8 View commit details
    Browse the repository at this point in the history
  4. Update dev-dependencies.

    romanb committed Jun 25, 2020
    Configuration menu
    Copy the full SHA
    11777d7 View commit details
    Browse the repository at this point in the history
  5. Update Cargo.tomls.

    romanb committed Jun 25, 2020
    Configuration menu
    Copy the full SHA
    a204f73 View commit details
    Browse the repository at this point in the history
  6. Add changelog.

    romanb committed Jun 25, 2020
    Configuration menu
    Copy the full SHA
    f964bbc View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2020

  1. Remove Sync bound from RequestResponseCodec::Protocol.

    Apparently the compiler just needs some help with the scope
    of borrows, which is unfortunate.
    romanb committed Jun 26, 2020
    Configuration menu
    Copy the full SHA
    fa2ee41 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2020

  1. Try async-trait.

    romanb committed Jun 27, 2020
    Configuration menu
    Copy the full SHA
    9c6e6b4 View commit details
    Browse the repository at this point in the history
  2. Allow checking whether a ResponseChannel is still open.

    Also expand the commentary on `send_response` to indicate that
    responses may be discard if they come in too late.
    romanb committed Jun 27, 2020
    Configuration menu
    Copy the full SHA
    7bfdff5 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2020

  1. Add RequestResponse::is_pending.

    As an analogue of `ResponseChannel::is_open` for outbound requests.
    romanb committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    2ec63e5 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2020

  1. Merge remote-tracking branch 'upstream/master' into libp2p-request-re…

    …sponse
    Roman S. Borschel committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    69d13fe View commit details
    Browse the repository at this point in the history
  2. Revert now unnecessary changes to the OneShotHandler.

    Since `libp2p-request-response` is no longer using it.
    Roman S. Borschel committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    216fca4 View commit details
    Browse the repository at this point in the history
  3. Update CHANGELOG for libp2p-swarm.

    Roman S. Borschel committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    9fadb3f View commit details
    Browse the repository at this point in the history
  4. Merge branch 'master' into libp2p-request-response

    Roman S. Borschel committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    48ad16a View commit details
    Browse the repository at this point in the history