Files
AsukaandCommandCodeBot d55dd62ffd compress: fix default level hanging zstd and disabling gzip compression
The zstd support removed the default from the --compress-level option
and made it required. When no level was configured the option was left
at its zero value, which meant no compression for gzip and an invalid
encoder level for zstd.

Restore the -1 default which selects the default level for the chosen
mode, and translate it to zstd's default level of 2. Also implement the
documented zstd level 0 by storing files uncompressed, and validate
levels when creating the Fs so bad values fail immediately instead of
hanging.

The compression goroutines now close the pipe with the encoder error and
the results channels are buffered, so an encoder or upload error can no
longer leave the transfer blocked forever waiting for EOF.

Fixes #10227

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
2026-11-11 16:04:29 +00:00
..