Add bounded concurrent URL transport - #822
Merged
Merged
Conversation
OpenAI gpt-5.6-sol via OpenCode implemented the bounded concurrent validated-IP transport and deterministic tests. Chris Huber reviewed and remains responsible for every line.
OpenAI gpt-5.6-sol via OpenCode restored focused WordPress formatting and verified the concurrent URL transport. Chris Huber reviewed and remains responsible for every line.
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.
Fixes #820
Summary
Static_Site_Importer_URL_Fetcher::fetch_many()with explicit global and per-origin in-flight limits, caller-keyed deterministic results, deadlines, and cancellation.Evidence
php tests/smoke-url-concurrent-fetcher.phppassed.homeboy review test --changed-since origin/main --placement local --summarypassed: 12/12, run898852d6-abd6-4686-acf4-b2bd53010e41.git diff --checkpassed before commit.Compatibility and Security
The existing single-fetch API remains unchanged. Concurrent work validates public IPs before each connection, pins the socket to a validated address, preserves hostname TLS SNI/Host, applies existing redirect, header, body, content-type, and timeout policies, and closes active sockets when the shared deadline is exhausted.
AI Assistance
OpenAI gpt-5.6-sol via OpenCode implemented the bounded concurrent validated-IP transport and deterministic tests. Chris Huber reviewed and remains responsible for every line.