diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-01-09 21:55:43 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-01-09 23:17:17 +0100 |
commit | 7f20e59a13a6acc3331e04185b8f1ed2538dcd0a (patch) | |
tree | dd7b670044397d56445e5d880a9eae7be8ebb979 /nix/libutil/util.hh | |
parent | 1684ed6537fbd91ae5c14fb0314564e71799d390 (diff) | |
download | guix-7f20e59a13a6acc3331e04185b8f1ed2538dcd0a.tar.gz |
machine: ssh: Open a single SSH session per machine.
Previously, any call to 'managed-host-remote-eval' and similar would open a new SSH session to the host. With this change, an SSH session is opened once, cached, and then reused by all subsequent calls to 'machine-ssh-session'. * gnu/machine/ssh.scm (<machine-ssh-configuration>): Add 'this-machine-ssh-configuration'. [session]: Mark as thunked and change default value to an 'open-machine-ssh-session*' call. (open-machine-ssh-session, open-machine-ssh-session*): New procedures. (machine-ssh-session): Replace inline code by call to 'open-machine-ssh-session'.
Diffstat (limited to 'nix/libutil/util.hh')
0 files changed, 0 insertions, 0 deletions