zed/zrpc
Antonio Scandurra 6b0ed820bf Prevent requests from hanging when shutting down a connection
When closing a connection (either due to an error or simply because the
user wanted to), we will now  *take* `response_channels` as opposed to
clearing them. This ensures that `Peer::request` can't succeed in both
adding the oneshot channel in `response_channels` map _and_ submit the
message onto the `outgoing_tx` channel.

This also streamlines how we close a connection by unifying all the exit
code paths of the IO handling future.
2021-09-23 16:35:40 +02:00
..
proto Allow joining worktrees by clicking them in the people panel 2021-09-21 12:21:03 -07:00
src Prevent requests from hanging when shutting down a connection 2021-09-23 16:35:40 +02:00
build.rs
Cargo.toml