Skip to content

Consume framed HTTP responses before closing TLS connections - #196

Merged
capz merged 4 commits into
mainfrom
codex/tls-provider-error-20261127
Nov 27, 2026
Merged

capz merged 4 commits into
mainfrom
codex/tls-provider-error-20261127

Conversation

@capz

@capz capz commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Large framed HTTPS downloads can lose their final data when the SDK asks a peer to close immediately: Dolphin's built-in BBA translates remote EOF into a reset and clears its receive buffers. HTTP/1.1 requests now allow keep-alive; the existing response parser closes the client-owned connection after the complete authenticated content-length or chunked body is consumed. Each response still owns one connection. Disposal, cancellation, limits, certificate verification and close-delimited response handling retain their existing behavior.

The real HTTPS/AOT fixture reads patterned 65,567-byte fixed and chunked responses from a peer that waits for client closure, then verifies that closure over a separate request. It runs at both supported read quanta in Debug/Release and GC stress. Close-delimited compatibility remains covered.

Also expose the existing native TLS provider's numeric last error through TlsConfiguration.LastErrorCode, with real success/failure/reset checks. NuGet publication now verifies a fresh exact-version consumer restore and records the actual Core/GameCube content hashes for downstream locked restores.

Validation: all framework and native/AOT checks, isolated .NET 11 consumers and packaging, and image safety passed on 473a0286e78d21abf6b396b07f94cdcba51be295. AnimalTown's complete Dolphin online/card-return qualification will run against the published SDK.

capz added 3 commits November 27, 2026 15:19
Allow HTTP/1.1 peers to keep the transport open; the existing body framing closes each client-owned connection after the authenticated response is complete. This avoids asking Dolphin BBA to synthesize a remote reset while response data is pending.

Exercise full fixed-length and chunked TLS responses with a peer that waits for client closure, and retain close-delimited compatibility coverage.
@capz capz changed the title Expose native TLS provider error codes for transport diagnostics Consume framed HTTP responses before closing TLS connections Nov 27, 2026
A response without HTTP length framing needs authenticated TLS EOF. Send close-notify as the existing raw TLS fixture does, retaining the provider's rejection of unauthenticated truncation. Include the current fixture path and numeric provider error in failure output.
@capz
capz merged commit ec3fd21 into main Nov 27, 2026
22 checks passed
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