Repository navigation
Preserve MinoWS stream shutdown errors - #42
Merged
Merged
Conversation
JonKuqi
marked this pull request as ready for review
August 25, 2026 13:48
JonKuqi
force-pushed
the
36-fix-minows-shutdown-errors
branch
from
August 25, 2026 16:48
86218c7 to
cc98bf4
Compare
JonKuqi
force-pushed
the
36-fix-minows-shutdown-errors
branch
from
August 26, 2026 15:04
cc98bf4 to
7806612
Compare
JonKuqi
force-pushed
the
36-fix-minows-shutdown-errors
branch
from
August 26, 2026 15:23
7806612 to
af7340f
Compare
JonKuqi
force-pushed
the
36-fix-minows-shutdown-errors
branch
from
August 26, 2026 15:26
af7340f to
e7cf7ba
Compare
JonKuqi
force-pushed
the
36-fix-minows-shutdown-errors
branch
from
August 27, 2026 08:06
e7cf7ba to
3280b2e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
errors.Is.closes #36
Problem
Normal stream completion produced repeated error-level messages after tests
had already passed:
This was not a Gob encoding bug.
gob.Decoder.Decodereturned a terminal I/O or libp2p error, butlistendestroyed its identity by formatting it with%v:Using
%vconverts the cause into formatted text instead of preserving the original error.passMessagescould therefore no longer reliably recognize errors such asio.EOFornetwork.ErrReset, and normal stream termination was treated as a dropped packet.Fix
Decoder errors are now returned directly, and terminal shutdown conditions are checked with
errors.Is. Send errors also use%wso their original cause remains accessible.Expected shutdowns now terminate the receive loop quietly, while genuine decoding errors are still logged.
Verification
go test ./mino/minows -count=1The focused EOF and cancelled-session tests also pass.