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

feat(gossipsub): introduce backpressure #5595

Merged
merged 22 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
00cde64
feat(gossipsub): implement backpressures
jxs Sep 10, 2024
cddab5a
address review
jxs Oct 2, 2024
e7b3b92
address Gui review
jxs Oct 31, 2024
887fe07
Merge branch 'master' of github.com:libp2p/rust-libp2p into impl-goss…
jxs Oct 31, 2024
7c7185c
count failed publish and forwards when not send from behaviour
jxs Oct 31, 2024
c9e6602
add tests
jxs Oct 31, 2024
6a3b59e
refactor(gossipsub): use `send_message` for all RpcOut
elenaf9 Nov 20, 2024
455edd6
refactor(gossipsub): return RpcOut in `RpcSender::send_message` Err
elenaf9 Nov 21, 2024
de1bf9f
fix(gossipsub): make clippy happy
elenaf9 Nov 21, 2024
b626118
Merge pull request #12 from elenaf9/gossipsub/sender_send_message
jxs Nov 22, 2024
b295f56
fix(gossipsub): readd lines accidently removed with jxs#12
elenaf9 Nov 22, 2024
c812627
Update protocols/gossipsub/src/behaviour.rs
jxs Nov 22, 2024
1789386
Merge pull request #13 from elenaf9/gossipsub/backpressure/readd-logs
jxs Nov 22, 2024
7665b2d
Apply suggestions from code review
jxs Nov 22, 2024
d795118
Update protocols/gossipsub/src/types.rs
jxs Nov 22, 2024
6fc1bb2
Apply suggestions from code review
jxs Nov 22, 2024
602c46f
seprate RpcSender and RpcReceiver to their own modules
jxs Nov 22, 2024
37de20c
Merge branch 'master' of github.com:libp2p/rust-libp2p into impl-goss…
jxs Nov 22, 2024
658ab16
add missing rpc module
jxs Nov 23, 2024
2789c42
replace and fix timeout messages with a field
jxs Nov 25, 2024
0ec96fa
restore priority_cap
jxs Nov 25, 2024
d8e3957
add dots to peer_score comments
jxs Nov 25, 2024
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
49 changes: 42 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions protocols/gossipsub/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
- Attempt to publish to at least mesh_n peers when flood publish is disabled.
See [PR 5578](https://github.com/libp2p/rust-libp2p/pull/5578).

- Introduce back pressure and penalize slow peers. Drop stale messages that timeout before being
delivered.
See [PR 5595](https://github.com/libp2p/rust-libp2p/pull/5595).
- Change `Behaviour::unsubscribe` and `Behaviour::report_message_validation_result`
to `bool` they don't need to be a `Result`.
See [PR 5595](https://github.com/libp2p/rust-libp2p/pull/5595).

## 0.47.0

<!-- Update to libp2p-swarm v0.45.0 -->
Expand Down
2 changes: 2 additions & 0 deletions protocols/gossipsub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ categories = ["network-programming", "asynchronous"]
wasm-bindgen = ["getrandom/js"]

[dependencies]
async-channel = "2.3.1"
asynchronous-codec = { workspace = true }
base64 = "0.22.1"
byteorder = "1.5.0"
Expand All @@ -22,6 +23,7 @@ either = "1.11"
fnv = "1.0.7"
futures = { workspace = true }
futures-ticker = "0.0.3"
futures-timer = "3.0.2"
getrandom = "0.2.15"
hex_fmt = "0.3.0"
web-time = { workspace = true }
Expand Down
Loading
Loading