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

swarm/connection: Enforce limit on inbound substreams via StreamMuxer #2861

Merged
merged 46 commits into from
Sep 21, 2022
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
79ce63f
Provide separate functions for injecting in- and outbound streams
thomaseizinger Aug 31, 2022
b829642
Inline `HandlerWrapper` into `Connection`
thomaseizinger Aug 31, 2022
7182fd6
Remove unique_dial_upgrade_id
thomaseizinger Aug 31, 2022
7190a79
Don't use tuples when we can use parameters
thomaseizinger Aug 31, 2022
f689617
Delay de-construction of SubstreamUpgrade
thomaseizinger Aug 31, 2022
4d9fa5b
Only poll for new inbound streams if we are below the limit
thomaseizinger Aug 31, 2022
1af9ba3
Inline `inject_substream` functions
thomaseizinger Aug 31, 2022
27274c8
Introduce ctor functions on SubstreamUpgrade to simplify poll-fn
thomaseizinger Aug 31, 2022
2c3a606
Remove stale comment
thomaseizinger Aug 31, 2022
772b775
Remove empty line
thomaseizinger Aug 31, 2022
6359137
Align naming
thomaseizinger Aug 31, 2022
bb930c4
Re-introduce log
thomaseizinger Aug 31, 2022
d8d8165
Bring back the test
thomaseizinger Aug 31, 2022
a98415f
Simplify `Connection` constructor
thomaseizinger Aug 31, 2022
bbf7070
Use `match` to reduce indentation level
thomaseizinger Aug 31, 2022
8fea3a7
Fix rustdoc links
thomaseizinger Aug 31, 2022
65a06d2
Replace `if let` with `match` to reduce indentation
thomaseizinger Aug 31, 2022
91370a9
Reduce diff
thomaseizinger Aug 31, 2022
0621961
Reduce diff, 2nd attempt
thomaseizinger Aug 31, 2022
9197de0
Reduce diff, 3nd attempt
thomaseizinger Aug 31, 2022
82d3bd3
Don't use dial terminology for substreams
thomaseizinger Sep 5, 2022
e677455
Fix typo
thomaseizinger Sep 5, 2022
6b98c50
yamux: Buffer inbound streams in `StreamMuxer::poll`
thomaseizinger Sep 5, 2022
890cecd
Fix compile error
thomaseizinger Sep 5, 2022
44e9163
Fix autonat tests
thomaseizinger Sep 8, 2022
649021c
Fix rustdoc link
thomaseizinger Sep 8, 2022
9ca11b0
Fix silly end-less loop mistake and add log
thomaseizinger Sep 15, 2022
34ef653
Revert "Fix autonat tests"
thomaseizinger Sep 15, 2022
44c2e36
Remove accidential log init
thomaseizinger Sep 15, 2022
0ec5a58
Remove import
thomaseizinger Sep 15, 2022
1ff710d
Have timer start on request of substream for outbound streams
thomaseizinger Sep 15, 2022
ce4d9a7
Add stub for missing test
thomaseizinger Sep 15, 2022
e0ba9ba
Implement missing test and add waker to SubstreamRequested
thomaseizinger Sep 15, 2022
9ea9ad8
Add docs
thomaseizinger Sep 15, 2022
a2f220a
Improve panic message
thomaseizinger Sep 15, 2022
e7cfb46
Add docs
thomaseizinger Sep 15, 2022
ee686ed
Ensure no shutdown as long as we want to open new streams
thomaseizinger Sep 15, 2022
9bfa0cb
Bump libp2p-yamux version
thomaseizinger Sep 15, 2022
ee61244
Add changelog entry to libp2p-swarm
thomaseizinger Sep 15, 2022
dcedb4e
Update muxers/yamux/src/lib.rs
thomaseizinger Sep 19, 2022
36f69ea
Merge branch 'master' into inline-handler-wrapper
thomaseizinger Sep 19, 2022
a2c2502
Merge branch 'inline-handler-wrapper' of github.com:libp2p/rust-libp2…
thomaseizinger Sep 19, 2022
a25abeb
Update Cargo.toml
thomaseizinger Sep 19, 2022
b8ad471
Update muxers/yamux/Cargo.toml
thomaseizinger Sep 19, 2022
0cb8a87
Fmt
thomaseizinger Sep 19, 2022
1943c66
Merge branch 'master' into inline-handler-wrapper
mxinden Sep 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading