Skip to content

internal/download: don't discard dst.Close error#34866

Merged
fjl merged 2 commits into
ethereum:masterfrom
tanvirman:dstClose
May 6, 2026
Merged

internal/download: don't discard dst.Close error#34866
fjl merged 2 commits into
ethereum:masterfrom
tanvirman:dstClose

Conversation

@tanvirman
Copy link
Copy Markdown
Contributor

When io.Copy succeeds but the buffered Close fails (e.g. disk full on Flush), the error was swallowed and verification reported a misleading hash mismatch instead of the real I/O failure. Keep the Close error when io.Copy didn't already produce one.

When `io.Copy` succeeds but the buffered `Close` fails (e.g. disk full on `Flush`), the error was swallowed and verification reported a misleading hash mismatch instead of the real I/O failure. Keep the `Close` error when `io.Copy` didn't already produce one.
Comment thread internal/download/download.go Outdated
@tanvirman tanvirman requested a review from jwasinger May 4, 2026 17:21
@fjl fjl added this to the 1.17.3 milestone May 6, 2026
@fjl fjl merged commit b92c86d into ethereum:master May 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants