mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-28 02:01:20 +00:00
* swarm/src/toggle: Ignore listen upgr errors when disabled A disabled `ToggleProtoHandler` can receive listen upgrade errors in the following two cases: 1. Protocol negotiation on an incoming stream failed with no protocol being agreed on. 2. When combining `ProtocolsHandler` implementations a single `ProtocolsHandler` might be notified of an inbound upgrade error unrelated to its own upgrade logic. For example when nesting a `ToggleProtoHandler` in a `ProtocolsHandlerSelect` the former might receive an inbound upgrade error even when disabled. `ToggleProtoHandler` should ignore the error in both of these cases. * *: Prepare libp2p-swarm v0.27.2 release