Files
oak-gpui/crates
Thorsten BallandBennet 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
..
2024-09-24 16:23:08 -06:00
2024-09-23 15:28:04 -06:00
2024-09-19 07:20:27 -04:00
2024-09-24 16:23:08 -06:00
2024-09-23 15:28:04 -06:00
2024-09-13 13:17:49 -04:00
2024-09-24 16:23:08 -06:00
2024-09-13 13:17:49 -04:00
2024-04-30 23:31:59 -06:00
2024-08-13 23:06:07 -07:00
2024-09-23 15:28:04 -06:00
2024-09-23 12:53:57 +03:00
2024-09-23 15:28:04 -06:00
2024-07-15 17:04:15 -06:00
2024-09-23 15:28:04 -06:00
2024-09-24 16:23:08 -06:00
2024-09-19 07:20:27 -04:00
2024-09-17 11:19:07 -04:00
2024-09-16 08:29:46 -04:00
2024-09-24 16:23:08 -06:00