fix(connection): keep SSH tunnels alive

This commit is contained in:
t8y2 committed 2026-06-02 10:39:24 +08:00
1 parent cc9c174fc5
commit 6b8b2a1009
6 files changed
+37 -11

No files matched your search

+2
View File
@@ -359,6 +359,7 @@ pub fn is_connection_error(err: &str) -> bool {
|| lower.contains("not connected")
|| lower.contains("end-of-file")
|| lower.contains("idle")
|| lower.contains("communicating with the server")
|| is_os_connection_error(&lower)
}
@@ -1321,6 +1322,7 @@ mod tests {
assert!(is_connection_error("Connection timed out"));
assert!(is_connection_error("socket closed"));
assert!(is_connection_error("unexpected eof"));
assert!(is_connection_error("Error occurred while creating a new object: error communicating with the server"));
}
#[test]