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
|
('success
|
||||||
(session-set! session 'timeout timeout)
|
(session-set! session 'timeout timeout)
|
||||||
session)
|
session)
|
||||||
|
('again
|
||||||
|
(raise (formatted-message (G_ "timeout while connecting \
|
||||||
|
to SSH server at '~a'")
|
||||||
|
(session-get session 'host))))
|
||||||
(x
|
(x
|
||||||
(match (userauth-gssapi! session)
|
(match (userauth-gssapi! session)
|
||||||
('success
|
('success
|
||||||
|
Loading…
Reference in New Issue
Block a user