ssh: Speed up RPCs by using #:nodelay.

Partly fixes <https://bugs.gnu.org/41702>.

* guix/ssh.scm (open-ssh-session): Enable #:nodelay.
* m4/guix.m4 (GUIX_CHECK_GUILE_SSH): Add feature check for this new parameter.
* doc/guix.texi (Requirements): Adjust.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Lars-Dominik Braun 2020-07-20 11:28:51 +02:00 committed by Ludovic Courtès
parent 6c451e16b7
commit e8088f0b06
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
3 changed files with 11 additions and 5 deletions

View file

@ -129,7 +129,11 @@ Throw an error on failure."
;; We need lightweight compression when
;; exchanging full archives.
#:compression compression
#:compression-level 3)))
#:compression-level 3
;; Speed up RPCs by creating sockets with
;; TCP_NODELAY.
#:nodelay #t)))
;; Honor ~/.ssh/config.
(session-parse-config! session)