guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSHv2 doesn't actually have compression levels


From: Ludovic Courtès
Subject: Re: SSHv2 doesn't actually have compression levels
Date: Thu, 22 Aug 2019 23:48:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Hello,

Tobias Geerinckx-Rice <address@hidden> skribis:

> While reading (guix scripts offload) in a (failed) attempt to get
> offloading working, the following comment caught my eye:
>
>  ;; We rely on protocol-level compression from libssh to optimize
> large data
>  ;; transfers.  Warn if it's missing.
>
> which means that we're not currently doing our own compression inside
> the tunnel.
>
> This is significant, because it means that the COMPRESS-LEVEL field of
> BUILD-MACHINE is completely bogus[0], and probably always was - unless

[...]

> [0]: Take a look at OpenSSH's readconf.c, packet.c, and all calls to
> start_compression_out().

I don’t get it: the ‘compression-level’ field defaults to 3, and OpenSSH
does:

  static int
  start_compression_out(struct ssh *ssh, int level)
  {
          if (level < 1 || level > 9)
                  return SSH_ERR_INVALID_ARGUMENT;
          debug("Enabling compression at level %d.", level);

  [...]

  }

What’s wrong?

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]