test(http): synchronize client cancellation regressions#1004
Merged
Conversation
Coldwings
force-pushed
the
fix/ci-client-cancel-test-ordering
branch
2 times, most recently
from
July 21, 2026 23:27
fdb5040 to
29ae3d0
Compare
Coldwings
force-pushed
the
fix/ci-client-cancel-test-ordering
branch
from
July 21, 2026 23:29
29ae3d0 to
4650478
Compare
Owner
Author
|
Independent static review completed for exact head |
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.
Description
Make the HTTP, WebSocket, and SSE connect-cancellation regressions wait until the client has successfully staged its cancellable response recv before cancellation. This removes the fixed 100 ms setup race that could cancel before TCP connection and strand fake-server I/O under ASAN.
Type of Change
Related Issues
Closes #1002
Changes Made
Core Changes
API Changes (if applicable)
None. The synchronization hook exists only when ELIO_RUNTIME_TEST_HOOKS is enabled.
Migration Guide (if breaking change)
Not applicable.
Testing
Unit Tests
Integration Tests
Sanitizer Testing
Test Results
Local compilation was intentionally not performed. The patch passed git diff --check; GitHub Actions provides executable x64/arm64 and sanitizer validation.
Checklist
Code Quality
Documentation
Testing
Compatibility
Performance
Screenshots / Diagrams
Not applicable.
Additional Notes
The LeakSanitizer report in the failing run was secondary fallout from forced scheduler shutdown with fake-server I/O still pending. This patch does not suppress leaks or weaken shutdown assertions.
Reviewer Guidance
Areas requiring special attention: