fix: add shell creation timeout and improve error handling #489
Reference in New Issue
Block a user
Delete Branch "fix/connection-loop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Root cause: When SSH connection succeeds but shell creation fails (server rejects shell request or doesn't respond), the frontend receives no notification and enters a reconnection loop until max attempts reached.
Changes:
shellTimeout- If shell callback not received within 15s, send error and cleanupsshConn.on("close")- Detect close during shell init and send specific error messagecleanupSSH()call on shell error to properly close connectionRelated to #385