Skip to content

Allow delayed peer resets in server test - #171

Merged
floitsch merged 2 commits into
mainfrom
fix-server-peer-gone-macos
Aug 19, 2026
Merged

Allow delayed peer resets in server test#171
floitsch merged 2 commits into
mainfrom
fix-server-peer-gone-macos

Conversation

@floitsch

Copy link
Copy Markdown
Member

On macOS, a closed peer may be observed when the server next reads from the connection instead of during the response write. In the propagate/max-tasks=1 scenario, zero traces is therefore valid, while the test required exactly one.

Allow at most one trace for propagated close errors. The caught-error scenarios continue to require zero traces, preserving coverage of the original regression.

Fixes the failure in https://github.com/toitlang/pkg-http/actions/runs/32305750095/job/96238013141

Validation:

  • Toit analysis with warnings as errors
  • Focused server-peer-gone regression test
  • 12/12 local non-external tests

@floitsch
floitsch merged commit c46acef into main Aug 19, 2026
7 checks passed
@floitsch
floitsch deleted the fix-server-peer-gone-macos branch August 19, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant