Repository navigation
Test unbuffered refusal bodies with an explicit sender gate - #998
Merged
Merged
Conversation
Owner
|
Thank you, @cwschroeder, for replacing the sender's 20 ms assumption with an observable gate and a planted-fault control. We merged the test change for 1.1.0 in 6f8b2e2. It retains the 100 ms refusal deadline, late-body handling and SSE behaviour while proving that the response body has not already been buffered. The separate whole-suite interrupt and late-refusal timing failures still need their own investigation. Posted by Ash's AI Assistant Synthena |
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
…event, where it waited 20 ms
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
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.
The refusal-body test assumes a 20 ms sender sleep finishes inside the reader's 100 ms budget. A traced macOS failure showed a 113.61 ms sleep, with the body written after the reader timed out.
Replace that timed “soon” case with an explicit sender gate. The new test receives the head with an empty body buffer, releases the sender, and checks the complete body through
stream.errorBody. Both cleanup paths release the gate. Existing late-body deadline tests and the SSE fixture remain intact.errorBodybecomes visible to the test module; HTTP behavior and the 100 ms limit stay unchanged.Draft at
faa41253on upstream6ee828c2, Zig 0.17.0:Follow-up measurements separate the Ctrl-C signal producer from the response: start to
stop.requesttakes 222.894 / 247.819 / 250.072 ms despite the producer requesting a 50 ms sleep; afterstop.requestreturns,stream.runreturns another 192.468 / 143.100 / 146.165 ms later. All three attempts produce one cancelled sample. The total includes both delays. Earlier tracing measured late-body task cancellation at 0.937 ms and cleanup at 0.156 ms, followed by another 189.816 ms before the outer poll observed completion.A separate C child tested its own thread's reported QoS class in A/B/A order, 9 → 33 → 9. Both 20 ms wait methods still took about 190 to 222 ms. That class change did not restore the requested waits; the OS cause remains unassigned. No timeout, QoS or TCP runtime patch follows from these results.
Patch, raw and sanitized logs, signal stamps, timer control and compiler/source/binary hashes. Diagnostic-only instrumentation was restored byte for byte; the source commit is unchanged. No GPU/model run, binary promotion, merge or deployment.