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

refactor(relay): move stream-handling away from {In,Out}boundUpgrade #4275

Merged
merged 123 commits into from
Sep 20, 2023

Commits on Jul 24, 2023

  1. Refactoring of stop protocol

    dgarus committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    79ee923 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

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

Commits on Aug 1, 2023

  1. fix review comment

    dgarus committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    1b39aaf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aa09aa3 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2023

  1. Refactoring of hop protocol

    dgarus committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    de33b72 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c5401be View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    70bb6d1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    72b2882 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. fix review comments

    dgarus committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    0b629da View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    91602d0 View commit details
    Browse the repository at this point in the history
  3. fix review comments

    dgarus committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    dde7f89 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2023

  1. Configuration menu
    Copy the full SHA
    332e933 View commit details
    Browse the repository at this point in the history
  2. fix review comments

    dgarus committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    55fa4d6 View commit details
    Browse the repository at this point in the history
  3. fix review comments

    dgarus committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    3fb008c View commit details
    Browse the repository at this point in the history
  4. fix review comments

    dgarus committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    4aac352 View commit details
    Browse the repository at this point in the history
  5. fix review comments

    dgarus committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    1a1f912 View commit details
    Browse the repository at this point in the history
  6. fix review comments

    dgarus committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    4e699dd View commit details
    Browse the repository at this point in the history
  7. fix rustfmt

    dgarus committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    1625704 View commit details
    Browse the repository at this point in the history
  8. fix review comments

    dgarus committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    77f4aaa View commit details
    Browse the repository at this point in the history
  9. fix review comments

    dgarus committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    4be941f View commit details
    Browse the repository at this point in the history
  10. fix review comments

    dgarus committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    0f79f76 View commit details
    Browse the repository at this point in the history
  11. ConnectionCommand to Command

    dgarus committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    162c9c8 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d163a6f View commit details
    Browse the repository at this point in the history
  13. rename fns

    dgarus committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    fd346a1 View commit details
    Browse the repository at this point in the history
  14. fix rustfmt

    dgarus committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    cdc6bcf View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    ceb0032 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2023

  1. fix review comments

    dgarus committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    f71b97e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0bf78c9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9bd9eb0 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. added futures-bounded struct

    dgarus committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    6116e4d View commit details
    Browse the repository at this point in the history
  2. added futures-bounded struct

    dgarus committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    13b690c View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

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

Commits on Aug 22, 2023

  1. Removed extra changes

    dgarus committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    4e1bee0 View commit details
    Browse the repository at this point in the history
  2. Removed extra changes

    dgarus committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    67f382c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    379b23f View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2023

  1. using futures-bounded struct

    dgarus committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    d6e09d3 View commit details
    Browse the repository at this point in the history
  2. using futures-bounded struct

    dgarus committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    28e101d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ef892ad View commit details
    Browse the repository at this point in the history
  4. using futures-bounded struct

    dgarus committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    4f1b69d View commit details
    Browse the repository at this point in the history
  5. fix format

    dgarus committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    c0d1b23 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c154fcb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5f0d826 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2023

  1. Update protocols/relay/src/behaviour.rs

    Co-authored-by: Max Inden <[email protected]>
    dgarus and mxinden authored Aug 26, 2023
    Configuration menu
    Copy the full SHA
    31661ae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1a83ed1 View commit details
    Browse the repository at this point in the history
  3. Update protocols/relay/src/behaviour.rs

    Co-authored-by: Max Inden <[email protected]>
    dgarus and mxinden authored Aug 26, 2023
    Configuration menu
    Copy the full SHA
    22f676d View commit details
    Browse the repository at this point in the history
  4. Update protocols/relay/src/behaviour/handler.rs

    Co-authored-by: Max Inden <[email protected]>
    dgarus and mxinden authored Aug 26, 2023
    Configuration menu
    Copy the full SHA
    7c0076b View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'origin/4075-relay' into 4075-relay

    # Conflicts:
    #	protocols/relay/src/behaviour.rs
    dgarus committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    9a84a18 View commit details
    Browse the repository at this point in the history
  6. fix review comments

    dgarus committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    553a316 View commit details
    Browse the repository at this point in the history
  7. removed config fields

    dgarus committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    18afe79 View commit details
    Browse the repository at this point in the history
  8. Update protocols/relay/src/behaviour/handler.rs

    Co-authored-by: Max Inden <[email protected]>
    dgarus and mxinden authored Aug 26, 2023
    Configuration menu
    Copy the full SHA
    a3f2839 View commit details
    Browse the repository at this point in the history
  9. fix review comments

    dgarus committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    3a265ab View commit details
    Browse the repository at this point in the history
  10. Merge branch 'master' into 4075-relay

    # Conflicts:
    #	Cargo.toml
    dgarus committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    347d6b0 View commit details
    Browse the repository at this point in the history
  11. fix toml file

    dgarus committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    38f94c2 View commit details
    Browse the repository at this point in the history
  12. fix review comments

    dgarus committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    5ccf0d5 View commit details
    Browse the repository at this point in the history
  13. fix review comments

    dgarus committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    0a87fa6 View commit details
    Browse the repository at this point in the history
  14. refactoring

    dgarus committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    e68966d View commit details
    Browse the repository at this point in the history
  15. аix failed tests

    dgarus committed Aug 26, 2023
    Configuration menu
    Copy the full SHA
    f541410 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

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

Commits on Aug 31, 2023

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

Commits on Sep 4, 2023

  1. Configuration menu
    Copy the full SHA
    1bf4136 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3887c6a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c5e4257 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c15e365 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f728a51 View commit details
    Browse the repository at this point in the history
  6. fix review comments

    dgarus committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    0724277 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. Configuration menu
    Copy the full SHA
    bb789c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    57f416a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4d26e27 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ec75ca8 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. rewrite unique workers

    dgarus committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    13bb338 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    64b0806 View commit details
    Browse the repository at this point in the history
  3. fix docs

    dgarus committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    a02fd7e View commit details
    Browse the repository at this point in the history
  4. fix clippy

    dgarus committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    d36af74 View commit details
    Browse the repository at this point in the history
  5. rewrite unique workers

    dgarus committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    05959c2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    92b456a View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. wrapping UniqueWorkers

    dgarus committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    11a36ee View commit details
    Browse the repository at this point in the history
  2. rustfmt

    dgarus committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    eb1a38d View commit details
    Browse the repository at this point in the history
  3. fix doc

    dgarus committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    5efe055 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. fix review comments

    dgarus committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    acb75af View commit details
    Browse the repository at this point in the history
  2. Update misc/futures-bounded/src/unique.rs

    Co-authored-by: Thomas Eizinger <[email protected]>
    dgarus and thomaseizinger authored Sep 8, 2023
    Configuration menu
    Copy the full SHA
    f4dd44f View commit details
    Browse the repository at this point in the history
  3. Update protocols/relay/src/priv_client/handler.rs

    Co-authored-by: Thomas Eizinger <[email protected]>
    dgarus and thomaseizinger authored Sep 8, 2023
    Configuration menu
    Copy the full SHA
    adde2e5 View commit details
    Browse the repository at this point in the history
  4. Update protocols/relay/src/priv_client/handler.rs

    Co-authored-by: Thomas Eizinger <[email protected]>
    dgarus and thomaseizinger authored Sep 8, 2023
    Configuration menu
    Copy the full SHA
    407443b View commit details
    Browse the repository at this point in the history
  5. Update protocols/relay/src/priv_client/handler.rs

    Co-authored-by: Thomas Eizinger <[email protected]>
    dgarus and thomaseizinger authored Sep 8, 2023
    Configuration menu
    Copy the full SHA
    8b5f307 View commit details
    Browse the repository at this point in the history
  6. Update protocols/relay/src/priv_client/handler.rs

    Co-authored-by: Thomas Eizinger <[email protected]>
    dgarus and thomaseizinger authored Sep 8, 2023
    Configuration menu
    Copy the full SHA
    bd67ebf View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1655c59 View commit details
    Browse the repository at this point in the history
  8. fix review comments

    dgarus committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    6dfc8c6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    838595e View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2023

  1. fix review comments

    dgarus committed Sep 9, 2023
    Configuration menu
    Copy the full SHA
    cc0ebe2 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2023

  1. Configuration menu
    Copy the full SHA
    35d8fd2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6be7123 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d68019e View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. Configuration menu
    Copy the full SHA
    86a0ac7 View commit details
    Browse the repository at this point in the history
  2. Remove tests that are covered by other impl

    Now that we are implementing `FuturesList` by wrapping `FuturesMap`, we
    no longer need these tests for `FuturesList`.
    thomaseizinger committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    7713aca View commit details
    Browse the repository at this point in the history
  3. Reformat docs

    thomaseizinger committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    036164c View commit details
    Browse the repository at this point in the history
  4. Improve panic message

    thomaseizinger committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    ff30991 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5cb43e0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0a4aa09 View commit details
    Browse the repository at this point in the history
  7. Don't nest match

    thomaseizinger committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    3c4bd99 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d73f3e9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ced1ae3 View commit details
    Browse the repository at this point in the history
  10. Use void::unreachable

    thomaseizinger committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    68feb38 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c98f2e1 View commit details
    Browse the repository at this point in the history
  12. Use void::unreachable

    thomaseizinger committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    c37c8ee View commit details
    Browse the repository at this point in the history
  13. Reduce diff

    thomaseizinger committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    21f4660 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    902aed8 View commit details
    Browse the repository at this point in the history
  15. Use void::unreachable

    thomaseizinger committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    d30dcc2 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ba8cb44 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    2883255 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    e2c9df3 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    8c6d61f View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    0354fc5 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

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

Commits on Sep 13, 2023

  1. Configuration menu
    Copy the full SHA
    ebdcfc0 View commit details
    Browse the repository at this point in the history
  2. Fix clippy lint

    thomaseizinger committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    38d9a28 View commit details
    Browse the repository at this point in the history
  3. Allow beta lint

    thomaseizinger committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    0cb3841 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5cbe9d7 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

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

Commits on Sep 19, 2023

  1. Configuration menu
    Copy the full SHA
    6e63600 View commit details
    Browse the repository at this point in the history
  2. fix review comments

    dgarus committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    3b8b07d View commit details
    Browse the repository at this point in the history
  3. Update misc/futures-bounded/src/map.rs

    Co-authored-by: Max Inden <[email protected]>
    dgarus and mxinden authored Sep 19, 2023
    Configuration menu
    Copy the full SHA
    d14eb90 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. feat(swarm): allow configuration to idle connection timeout

    Previously, a connection would be shut down immediately as soon as its `ConnectionHandler` reports `KeepAlive::No`. As we have gained experience with libp2p, it turned out that this isn't ideal.
    
    For one, tests often need to keep connections alive longer than the configured protocols require. Plus, some usecases require connections to be kept alive in general.
    
    Both of these needs are currently served by the `keep_alive::Behaviour`. That one does essentially nothing other than statically returning `KeepAlive::Yes` from its `ConnectionHandler`.
    
    It makes much more sense to deprecate `keep_alive::Behaviour` and instead allow users to globally configure an `idle_conncetion_timeout` on the `Swarm`. This timeout comes into effect once a `ConnectionHandler` reports `KeepAlive::No`. To start with, this timeout is 0. Together with libp2p#3844, this will allow us to move towards a much more aggressive closing of idle connections, together with a more ergonomic way of opting out of this behaviour.
    
    Fixes libp2p#4121.
    
    Pull-Request: libp2p#4161.
    startup-dreamer authored and thomaseizinger committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    2de759c View commit details
    Browse the repository at this point in the history
  2. Fix formatting

    thomaseizinger committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    9b3d48c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a872c0c View commit details
    Browse the repository at this point in the history