-
Notifications
You must be signed in to change notification settings - Fork 965
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
Transport: Poll Transport directly, remove ListenersStream #2652
Commits on May 16, 2022
-
core/transport: remove Transport::Listener
Remove `Transport::Listener: Stream`. Instead require the Transport itself to implement a stream-like API with `Transport::poll`. In case of multiple listeners, transports are now required to handle the multiple listener streams themselves internally.
Configuration menu - View commit details
-
Copy full SHA for f134c8b - Browse repository at this point
Copy the full SHA f134c8bView commit details -
swarm: remove ListenerStream, poll Transport
Remove ListenersStream, instead poll the boxed transport directly in the `Swarm` for `TransportEvent`s (which replace the former `ListenersEvent`s).
Configuration menu - View commit details
-
Copy full SHA for aac9e1c - Browse repository at this point
Copy the full SHA aac9e1cView commit details -
transports/tcp: handle transport changes
Add new struct `GenTcpTransport` as wrapper for `GenTcpConfig` to manage multiple listener streams. This is essentially the old ListenerStream logic from swarm/connection.
Configuration menu - View commit details
-
Copy full SHA for 68663fd - Browse repository at this point
Copy the full SHA 68663fdView commit details -
*: adapt majority of other transports
Adapt majority of helper transports to the new Transport trait. For most transports this just removes the extra *Listener type and instead implements that logic in `Transport::poll`. To adapt the `Boxed` transport the restriction had to be added that transport is `Unpin`. TODO: check if we can solve polling `Boxed` without the inner Transport being unpin.
Configuration menu - View commit details
-
Copy full SHA for 72c76f0 - Browse repository at this point
Copy the full SHA 72c76f0View commit details
Commits on May 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 945c4a0 - Browse repository at this point
Copy the full SHA 945c4a0View commit details
Commits on May 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d6f0e75 - Browse repository at this point
Copy the full SHA d6f0e75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 858590f - Browse repository at this point
Copy the full SHA 858590fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 45f9c96 - Browse repository at this point
Copy the full SHA 45f9c96View commit details -
Configuration menu - View commit details
-
Copy full SHA for bfd5fb0 - Browse repository at this point
Copy the full SHA bfd5fb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90721b9 - Browse repository at this point
Copy the full SHA 90721b9View commit details
Commits on May 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 80c3da1 - Browse repository at this point
Copy the full SHA 80c3da1View commit details -
Configuration menu - View commit details
-
Copy full SHA for bcb71a1 - Browse repository at this point
Copy the full SHA bcb71a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38a2b78 - Browse repository at this point
Copy the full SHA 38a2b78View commit details
Commits on May 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 607412d - Browse repository at this point
Copy the full SHA 607412dView commit details -
With `Transport` becoming non-Clone and having `&mut` self receivers, the `Sync` requirement no longer makes any sense and we can thus remove it.
Configuration menu - View commit details
-
Copy full SHA for d7f5019 - Browse repository at this point
Copy the full SHA d7f5019View commit details -
transports/tcp: revert Stream impl for GenTcpTransport
With PR libp2p#2667 the `Sync` trait bound for transport::Boxed is removed. If a tcp transport should be polled as a stream we can now do this via `TcpTransport::new(..)::boxed` and do not need a separate impl of `Stream` for it.
Configuration menu - View commit details
-
Copy full SHA for b4164e8 - Browse repository at this point
Copy the full SHA b4164e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7766cd - Browse repository at this point
Copy the full SHA a7766cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9824acd - Browse repository at this point
Copy the full SHA 9824acdView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2988b5 - Browse repository at this point
Copy the full SHA a2988b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2edb0cd - Browse repository at this point
Copy the full SHA 2edb0cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 907a5ab - Browse repository at this point
Copy the full SHA 907a5abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1924c12 - Browse repository at this point
Copy the full SHA 1924c12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ba3c20 - Browse repository at this point
Copy the full SHA 8ba3c20View commit details -
Configuration menu - View commit details
-
Copy full SHA for 96ae97b - Browse repository at this point
Copy the full SHA 96ae97bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c686b5a - Browse repository at this point
Copy the full SHA c686b5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 354d2f0 - Browse repository at this point
Copy the full SHA 354d2f0View commit details -
core/transport: create ListenerId within Transport
Return a ListenerId in Transport::listen_on instead of getting it injected from the outside. Namespace ListenerIds with the Transport's TypeId to avoid clashing IDs when transport generate their ListenerIds independenlty.
Configuration menu - View commit details
-
Copy full SHA for 2226092 - Browse repository at this point
Copy the full SHA 2226092View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f608cd - Browse repository at this point
Copy the full SHA 8f608cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f9ebb7 - Browse repository at this point
Copy the full SHA 5f9ebb7View commit details
Commits on Jun 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 199ce12 - Browse repository at this point
Copy the full SHA 199ce12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27ee9ca - Browse repository at this point
Copy the full SHA 27ee9caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 08f4f80 - Browse repository at this point
Copy the full SHA 08f4f80View commit details -
Configuration menu - View commit details
-
Copy full SHA for f92c2a4 - Browse repository at this point
Copy the full SHA f92c2a4View commit details
Commits on Jun 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a357d71 - Browse repository at this point
Copy the full SHA a357d71View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4a745e - Browse repository at this point
Copy the full SHA a4a745eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81c945c - Browse repository at this point
Copy the full SHA 81c945cView commit details
Commits on Jun 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1c2b9e5 - Browse repository at this point
Copy the full SHA 1c2b9e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for b19e11a - Browse repository at this point
Copy the full SHA b19e11aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c95c97c - Browse repository at this point
Copy the full SHA c95c97cView commit details
Commits on Jun 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for eb0397b - Browse repository at this point
Copy the full SHA eb0397bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 610f7ae - Browse repository at this point
Copy the full SHA 610f7aeView commit details -
Co-authored-by: Max Inden <mail@max-inden.de>
Configuration menu - View commit details
-
Copy full SHA for f28cdb1 - Browse repository at this point
Copy the full SHA f28cdb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4841d81 - Browse repository at this point
Copy the full SHA 4841d81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e74407 - Browse repository at this point
Copy the full SHA 4e74407View commit details -
Configuration menu - View commit details
-
Copy full SHA for b410724 - Browse repository at this point
Copy the full SHA b410724View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71885ad - Browse repository at this point
Copy the full SHA 71885adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b3402c - Browse repository at this point
Copy the full SHA 2b3402cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 469515e - Browse repository at this point
Copy the full SHA 469515eView commit details
Commits on Jun 28, 2022
-
transports/tcp: rm unneeded dependencies, fix docs
Co-authored-by: Max Inden <mail@max-inden.de>
Configuration menu - View commit details
-
Copy full SHA for 83a13dd - Browse repository at this point
Copy the full SHA 83a13ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d4e0aa - Browse repository at this point
Copy the full SHA 3d4e0aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8600be7 - Browse repository at this point
Copy the full SHA 8600be7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a16312 - Browse repository at this point
Copy the full SHA 1a16312View commit details
Commits on Jul 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d4b8ba5 - Browse repository at this point
Copy the full SHA d4b8ba5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03c5170 - Browse repository at this point
Copy the full SHA 03c5170View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f5eb08 - Browse repository at this point
Copy the full SHA 5f5eb08View commit details
Commits on Jul 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c2bc9e8 - Browse repository at this point
Copy the full SHA c2bc9e8View commit details