From 448089f452025ec8c655532c758ea6ca9520b6ae Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 22 Nov 2026 12:00:44 +0000 Subject: libp2p: room for inbound streams that come in at once libp2p-stream hands each inbound stream to the consumer through a channel with room for one (Control::accept, mpsc::channel(0), try_send): one arriving while another waits is dropped, unread, logged at debug under libp2p's target alone. Messages sent to a node at once were lost but one, and a proof is two since wire versions side by side (SPEAKS, then WHO): a joiner's WHO went unanswered until RESOLVE_TIMEOUT, 10 s, and nodes_over_libp2p failed now and then. The transport accepts with Control::accept_with_buffer, with room for as many streams as it reads at once (WAITING, READS + STRANGER_READS): beyond them, one is dropped still. messages_sent_at_once_all_come_in sends 30 at once from three peers; without this, 3 to 7 came in. --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index f01a619..560c4af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ it from the release before ([`docs/operations.md`](docs/operations.md), ## Unreleased +* Over libp2p, messages sent to a node at once all come in: of their streams, all but + one were dropped unread, and a joining node's first proof of who it is, two of them, + went unanswered for 10 seconds ([`src/transport/libp2p/mod.rs`](src/transport/libp2p/mod.rs); + [`Cargo.toml`](Cargo.toml), libp2p-stream from a fork until a release has the fix). + * Before 1.0.0, versions read as Cargo reads them: of `0.Y.Z`, a release every node upgrades to together raises `Y`, any other raises `Z`; `scripts/release` refuses a flag day that doesn't ([`docs/operations.md`](docs/operations.md), -- cgit v1.3.1