mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-24 17:40:47 +01:00
b25dc09370
## Summary Remote reconnection previously reusing the heartbeat timeout (5 secs), and started the resync timeout before the new connection completed its handshake. As a result, the timeout could expire before the handshake finished. Refactored the code to introduce separate timeouts for the handshake and resync, with the resync timeout starting after the handshake completes. Also moved the tests previously located in the middle of the file to the end. ## Testing A new integration test. ## Self-review - [x] I've reviewed my diff for quality, security, reliability, and performance. - [ ] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [x] Tests cover the new or changed behavior. Release Notes: - Improved timeout handling for SSH reconnections