Avoid HTTP/1 connection assignment churn - #2
Merged
bradhilton merged 3 commits intoSep 22, 2026
Merged
bradhilton merged 3 commits into
bradhilton merged 3 commits into
Conversation
bradhilton
marked this pull request as ready for review
September 22, 2026 17:50
bradhilton
merged commit Sep 22, 2026
3819ac3
into
openpipe/linear-connection-pool-1.0.9
5 checks passed
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.
Concurrent requests could repeatedly select the same idle HTTP/1.1 connection and retry assignment. Reserve connections until request release, keep HTTP/2 sharing, and skip expiry/idle eviction for reserved connections. Ordered candidate removal and incremental reservation counts avoid repeated scans and handoffs.
Release ownership on requeue, cancellation, exceptions, and response closure; make duplicate closes safe. The source distribution includes its sync generator and uses metadata compatible with supported build checks.
Validation: 286 tests pass, type checking passes, and statement coverage is 100%. The full suite also passes from the extracted source distribution. Python 3.8–3.12 CI is green at
8084971fe322e979988c27b12d04620881491788. Fresh GPT-6 Astra and Cursor Claude Fable 5.1 reviews both approve that commit. The warm HTTP/1.1 fixture verifies assignment behavior; end-to-end driver performance remains to be measured.