ssh: Work around 'get-bytevector-some' bug.
authorLudovic Courtès <ludo@gnu.org>
Wed, 10 Jan 2018 16:52:23 +0000 (17:52 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 10 Jan 2018 23:00:02 +0000 (00:00 +0100)
commit17af5d51de7c40756a4a39d336f81681de2ba447
tree0266b933a2b68e79b780935e52e50869695ff470
parent74a235525410083bf02d3f3e495eca9adb0db2c8
ssh: Work around 'get-bytevector-some' bug.

This works around <https://bugs.gnu.org/30066> and noticeably improves
performance when using GUIX_DAEMON_SOCKET=ssh://HOST (the redirect code
was transferring data to guix-daemon one byte at a time!).

* guix/ssh.scm (remote-daemon-channel)[redirect]: Define 'read!' and use
it instead of 'get-bytevector-some'.
guix/ssh.scm