fix(connection): keep SSH tunnels alive
This commit is contained in:
1 parent
cc9c174fc5
commit
6b8b2a1009
6 files changed
+37
-11
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user