You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling .Close() on a zstd Encoder (via zstd.NewWriter, wrapping an existing writer), it does not call .Close() on the wrapped writer. This requires tracking the underlying writer to ensure it gets closed properly.
Especially problematic when using with io.Pipe (or other streaming situations), as the underlying PipeWriter must be closed to signal to the reader that everything is completed.
The documentation for zstd.NewWriter is silent on this; it provides no indication of who is responsible for lifecycle management of the passed-in Writer.