diff options
| author | tv <tv@krebsco.de> | 2026-11-22 12:00:44 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-22 12:00:44 +0000 |
| commit | 448089f452025ec8c655532c758ea6ca9520b6ae (patch) | |
| tree | 9359c5769217293a44f6ddaf98af398e0663782b /CHANGELOG.md | |
| parent | 46dbc0a3485f1d5d7624a0e450d51f4866a840ff (diff) | |
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.
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
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), |
