Repository navigation
Keep frames whole when a send or receive is interrupted, on Windows too - #3
Merged
Merged
Conversation
thomasjm
force-pushed
the
send-survives-interrupt-windows
branch
5 times, most recently
from
December 4, 2026 00:36
010e9bf to
24db798
Compare
…he frame it was in
…n 2 is gone from CI
thomasjm
force-pushed
the
send-survives-interrupt-windows
branch
from
December 4, 2026 08:20
a94d9c4 to
7a96060
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.
Everything in #1, plus what checking it on Windows turned up. Replaces #1 and #2, which were merged without review and have been taken back off master.
recvand rethrows, discarding a completion that already carried data.makeSocketStreamon Windows now runs each receive on its own thread, and an interrupted one leaves its result to the next.LambdaCaseandScopedTypeVariablesare on by default, code the tests share is in aTestLibtree, and imports the Prelude covers are gone.The receive change is Windows-only; Linux behaviour is unchanged.
Windows results
GHC 9.14 cross-built for
x86_64-w64-mingw32in codedown's toolchain (its WinIO patches to GHC andnetwork3.2.99.0), run on Windows 11. Interrupt, Server and Warp groups, ten runs each:--io-manager=native)--io-manager=posix)Before the receive fix,
interrupted receivefailed 4 of 20 runs under WinIO withParseException "Unknown opcode: 12", and passed 30 of 30 after.Stream.closereturns promptly and the stalled-client tests pass.killThreadcan't interrupt, soStream.closewaits on it.abandon a stalled clientandwarp times out a stalled sendin the Warp group fail withwarp's handler never finished. Not fixed here. Stock GHC 9.8 withnetwork-3.2.16.0(this repo's Windows CI job, default I/O manager) passes these two, so this is particular to the toolchain above.The full suite otherwise fails only
RFC 6455, 5.5: Frame decoder shall fail if control frame payload length > 125 bytes, on an error message that doesn't match, as on Linux and master.