Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/connection: Return error from next_frame Future early
> The `frame` future might be _ready_ with an `Error` from the underlying socket (i.e. here `libp2p-websocket`). Though given that the result of the `control_command` `Future` is handled first, `on_control_command` is called despite `frame` having returned an `Error`. `on_control_command` itself may try to write to the underlying socket, which will panic given that the socket returned an error earlier via the `frame` `Future`. Patch to validate suspicion in libp2p/rust-libp2p#2598.
- Loading branch information