[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41702: `guix environment` performance issues
From: |
Ludovic Courtès |
Subject: |
bug#41702: `guix environment` performance issues |
Date: |
Wed, 01 Jul 2020 12:49:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hi,
Ludovic Courtès <ludo@gnu.org> skribis:
> + (when open-connection
> + (let* ((sock (open-connection host port)))
> + ;; Since 'session-set!' doesn't increase the revealed count of SOCK
> + ;; (as of Guile-SSH 0.12.0), do it ourselves.
> + (set-port-revealed! sock 1)
> + (session-set! session 'fd sock)))
The problem with this approach is that ‘open-connection’ is past the raw
host name; aliases, proxy commands, etc. from ~/.ssh/config are ignored.
So it cannot go in as is. :-/
What we need is Guile-SSH bindings for ‘ssh_get_fd’, which would allow
us to get at the actual file descriptor after the connection has been
opened, and to set TCP_NODELAY there:
http://api.libssh.org/stable/group__libssh__session.html#gafe509fcea47714b5cd277d1e35e83276
It’s not 100% clear though if it returns that “right” FD when there’s a
proxy command.
Ludo’.
- bug#41702: `guix environment` performance issues,
Ludovic Courtès <=
- bug#41702: `guix environment` performance issues, Lars-Dominik Braun, 2020/07/01
- bug#41702: `guix environment` performance issues, Ludovic Courtès, 2020/07/01
- bug#41702: `guix environment` performance issues, Lars-Dominik Braun, 2020/07/02
- bug#41702: `guix environment` performance issues, Lars-Dominik Braun, 2020/07/02
- bug#41702: `guix environment` performance issues, Ludovic Courtès, 2020/07/06
- bug#41702: `guix environment` performance issues, Lars-Dominik Braun, 2020/07/06
- bug#41702: `guix environment` performance issues, Lars-Dominik Braun, 2020/07/20
- bug#41702: `guix environment` performance issues, Ludovic Courtès, 2020/07/20