]> git.bitcoin.ninja Git - rust-lightning/commit
Apply backpressure when we have too many gossip checks in-flight
authorMatt Corallo <git@bluematt.me>
Sun, 22 Jan 2023 18:08:33 +0000 (18:08 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 9 Feb 2023 15:40:43 +0000 (15:40 +0000)
commit00a70c25f9111f8f733f2ca4a0a61ba67d2d56a8
treec3887ee6de9ff2291404986aed636aa84d0e802b
parent02b187856bc7f1d7edd46897e2f983a65a97230c
Apply backpressure when we have too many gossip checks in-flight

Now that the `RoutingMessageHandler` can signal that it needs to
apply message backpressure, we implement it here in the
`PeerManager`. There's not much complicated here, aside from noting
that we need to add the ability to call `send_data` with no data
to indicate that reading should resume (and track when we may need
to make such calls when updating the routing-backpressure state).
lightning/src/ln/peer_handler.rs