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

Simplified handling of idle connections #4306

Closed
6 tasks done
Tracked by #2863
thomaseizinger opened this issue Aug 9, 2023 · 2 comments
Closed
6 tasks done
Tracked by #2863

Simplified handling of idle connections #4306

thomaseizinger opened this issue Aug 9, 2023 · 2 comments
Labels
tracking-issue Issues which are the entry point to bigger projects.

Comments

@thomaseizinger
Copy link
Contributor

thomaseizinger commented Aug 9, 2023

Description

For a longer discussion see #3353 (comment).

With #3844, we are deprecating KeepAlive::Until. With #4121, users can configure a Swarm-wide idle timeout that activates once all ConnectionHandlers report KeepAlive::No.

Tasks

  1. 12 of 12
    difficulty:moderate help wanted priority:nicetohave
  2. difficulty:moderate help wanted
  3. send-it
  4. difficulty:moderate help wanted
    leonzchang

Motivation

Easier idle connection management for custom protocols. In particular, most users should not need to deal with idle connections and keep alive tracking but it should just work out of the box.

@thomaseizinger thomaseizinger added this to the Simplify idle connection management milestone Sep 17, 2023
@thomaseizinger thomaseizinger changed the title swarm: rework handling of idle connections Tracking issue for simplified handling of idle connections Sep 19, 2023
@thomaseizinger thomaseizinger removed this from the Simplify idle connection management milestone Sep 19, 2023
@thomaseizinger thomaseizinger changed the title Tracking issue for simplified handling of idle connections Simplified handling of idle connections Sep 19, 2023
@thomaseizinger thomaseizinger added tracking-issue Issues which are the entry point to bigger projects. and removed help wanted difficulty:hard labels Sep 19, 2023
@mxinden
Copy link
Member

mxinden commented Sep 22, 2023

Thank you for the project management work here!

I am sure #3844 is a good idea. Thus, as you list it above, I suggest landing it first.

#4520 makes sense to me. I haven't put much thought into the concrete implementation that you suggest yet.

@thomaseizinger
Copy link
Contributor Author

All done! 🥳

mergify bot pushed a commit that referenced this issue Oct 30, 2023
With #4306 resolved, we no longer need to carry around oneshots in the relay code that track our alive streams. This is now handled directly by `Connection`.

Pull-Request: #4744.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracking-issue Issues which are the entry point to bigger projects.
Projects
None yet
Development

No branches or pull requests

2 participants