ZIm/crates/rpc/src
Thorsten Ball 9d197ddc99
ssh remoting: Fix SSH connection not being closed (#18329)
This fixes the `SshSession` being leaked.

There were two leaks:

1. `Arc<SshSession>` itself got leaked into the `SettingsObserver` that
   lives as long as the application. Fixed with a weak reference.
2. The two tasks spawned by an `SshSession` had a circular dependency
   and didn't exit while the other one was running. Fixed by fixing (1)
   and then attaching one of the tasks to the `SshSession`, which means
   it gets dropped with the session itself, which leads the other task
   to error and exit.

Co-authored-by: Bennet <bennet@zed.dev>

Release Notes:

- N/A

---------

Co-authored-by: Bennet <bennet@zed.dev>
2024-09-25 12:03:24 +02:00
..
auth.rs Upgrade base64 to v0.22 (#15304) 2024-07-26 17:40:38 -04:00
conn.rs Enable clippy::redundant_locals (#8750) 2024-03-02 21:57:40 -05:00
extension.rs Rank exact extension ID matches higher in search results (#14588) 2024-07-16 12:33:28 -06:00
llm.rs collab: Add GET /models endpoint to LLM service (#17307) 2024-09-03 11:41:32 -04:00
macros.rs Log the time incoming RPC messages were queued (#8909) 2024-03-05 14:40:09 -08:00
notification.rs Remove unneeded 'static lifetimes on &strs in constants (#8698) 2024-03-02 00:40:49 -05:00
peer.rs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
proto.rs Extract a proto crate out of rpc (#12852) 2024-06-10 12:49:53 -06:00
proto_client.rs ssh remoting: Fix SSH connection not being closed (#18329) 2024-09-25 12:03:24 +02:00
rpc.rs Move ProtoClient to RPC crate, behind feature flag disabled in collab (#17908) 2024-09-16 14:50:30 -07:00