Skip to content

H1.4 — Conservative macOS 27 SSE cancellation without Early EOF - #29

Draft
ThorFuchs wants to merge 2 commits into
mainfrom
research/macos27-conservative-http-cancellation
Draft

ThorFuchs wants to merge 2 commits into
mainfrom
research/macos27-conservative-http-cancellation

Conversation

@ThorFuchs

Copy link
Copy Markdown
Owner

Scope

Research-only implementation candidate for the conservative macOS 27 HTTP/1.1 disconnect strategy. This PR must not be merged until the isolated no-early-EOF native qualification passes.

  • SSE requests wait for a bounded first-frame grace (up to 500 ms). Fast protocol/dispatch failures retain their HTTP status and JSON body.
  • If the provider remains silent, the server commits a 200 SSE response and immediately writes a comment keepalive. Write failure fails the mailbox and cancels/joins the producer.
  • Subsequent keepalives are capped at one second. subscriptions/listen remains SSE even when the general response mode is JSON. JSON mode remains one-shot and does not provide SSE stream-close cancellation.
  • Add native tests for disconnect before first response frame and fast method-not-found status preservation. Repeated FIN and TLS disconnect tests now exercise SSE cancellation.
  • Add a research-only macOS 27 ARM64 CI job, sequenced after normal native Debug/Release and before shared-CPU Linux compile. It resolves the exact SwiftNIO 2.105.2 pin, reverts only upstream PR #3783 in the disposable dependency checkout, runs the upstream TCP saturation regression and HTTP Debug/Release suites, and preserves local evidence on Studio.
  • Do not downgrade SwiftNIO to 2.105.1; the 2.105.2 release contains other fixes. Production Package.swift and Package.resolved remain unchanged pending an official upstream revert release.

Open qualifications

  • Native CI has not yet completed.
  • The separate initial response-head write deadline gap remains open.
  • No HTTP/2 claim: current transport supports HTTP/1.1 only.
  • JSON one-shot requests do not have SSE stream-close cancellation.
  • Full MCP conformance and release admission remain subject to all existing Core/HTTP gates.

No SwiftNIO upstream changes, donor changes, dependency pin changes, merge, or release are authorized by this draft PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant