ssh: 'open-ssh-session' gracefully handles connection timeouts.
* guix/ssh.scm (open-ssh-session): Add case for 'again.
This commit is contained in:
parent
26bdefd172
commit
06ce4e3c06
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user