ssh: 'open-ssh-session' gracefully handles connection timeouts.

* guix/ssh.scm (open-ssh-session): Add case for 'again.
This commit is contained in:
Ludovic Courtès 2022-08-09 19:35:53 +02:00
parent 26bdefd172
commit 06ce4e3c06
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

@ -162,6 +162,10 @@ server at '~a': ~a")
('success
(session-set! session 'timeout timeout)
session)
('again
(raise (formatted-message (G_ "timeout while connecting \
to SSH server at '~a'")
(session-get session 'host))))
(x
(match (userauth-gssapi! session)
('success