zed/crates/remote
Thorsten Ball 7f64f0454d
ssh remoting: Ensure only single instance can upload binary (#19597)
This creates a `<binary_path>.lock` file and checks for it whenever
uploading a binary.

Parameters:
- Wait for other instance to finish: 10m
- Mark lockfile as stale and ignore it after: 10m
- When waiting on another process, check every 5seconds

We can tweak all of them.

Ideally we'd have a value in the lockfile, that lets us detect whether
the other process is still there, but I haven't found something stable
yet:

- We don't have a stable PID on the server side when we run multiple
commands
- The `ControlPath` is on the client side

Release Notes:

- N/A
2024-10-23 13:18:27 +02:00
..
src ssh remoting: Ensure only single instance can upload binary (#19597) 2024-10-23 13:18:27 +02:00
Cargo.toml SSH Remoting: Fix reconnects (#19485) 2024-10-19 23:14:19 -06:00
LICENSE-GPL