Repository navigation
Consume framed HTTP responses before closing TLS connections - #196
Merged
Merged
Conversation
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.
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.
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.
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.