Repository navigation
fix(network): decode, bound, and cancel shared HTTP requests - #998
Merged
Merged
Conversation
Aayam Bansal (aayambansal)
requested a review
from Ishaan Gangwani (ishaan1124)
as a code owner
October 18, 2026 07:20
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…lifecycle # Conflicts: # CHANGELOG.md
This was referenced Oct 18, 2026
Closed
This branch was successfully deployed
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.
The shared network transport could return incomplete buffered responses after cancellation, expose compressed wire bytes, and miss actual byte limits on chunked streams. DNS waits also delayed cancellation, and deterministic address-policy refusals consumed connector retry budgets.
Use one bounded decoding pipeline for buffered and streamed responses, reject incomplete bodies before caching, propagate cancellation through the socket lifetime, and decode gzip/deflate/Brotli before enforcing the byte cap. The Node-to-Web bridge now owns cancellation explicitly so queued data cannot enqueue after a consumer cancels.
Add an explicit
OPENSCIENCE_DNS_RESOLVER=cloudflareoption for TUN Fake IP environments. Its HTTPS resolver uses a fixed public bootstrap address and TLS hostname verification; returned destination addresses and redirects still pass the existing private-address checks. Default DNS behavior is unchanged. Policy refusals are terminal and the TUN diagnostic explains the supported alternatives without exposing signed download URLs.Fixes #979, fixes #980, fixes #981, fixes #982, fixes #983.
Validation: 56 focused tests pass through real local HTTP transports, including compression/decoded limits, cancellation, cache exclusion, deferred DNS, policy denial and upstream stream cancellation. Backend typecheck passes. A live pinned DNS-over-HTTPS query returned four public addresses. Existing private/mixed-address and redirect tests pass. No provider credentials or account data changed.