-
Notifications
You must be signed in to change notification settings - Fork 70
fix(firestore): use pooled HTTP/2 connections by default to fix slow/failing concurrent requests #305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
demolaf
wants to merge
12
commits into
fix/ci-codecov-action-allowlist
Choose a base branch
from
firestore/http2-pooled-client
base: fix/ci-codecov-action-allowlist
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+491
−6
Open
fix(firestore): use pooled HTTP/2 connections by default to fix slow/failing concurrent requests #305
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c5ed523
feat(firestore): use pooled HTTP/2 connections by default for all req…
demolaf 3a08625
fix(firestore): keep emulator on plain HTTP/1.1, matching Node's REST…
demolaf 35f4308
test(firestore): add unit tests for ClientPool<T>
demolaf 0f0f33e
fix(firestore): close pooled HTTP/2 connections on shutdown and compl…
demolaf 016658f
chore: update CHANGELOG
demolaf 9839fc6
fix(firestore): lowercase HTTP/2 header names, avoid hangs/leaks in t…
demolaf 922053c
Merge branch 'main' into firestore/http2-pooled-client
demolaf ff058af
fix(firestore): cancel HTTP/2 stream subscription on early cancel, ma…
demolaf 0335e6b
merge(ci): pull in codecov-action allow-list fix from #306
demolaf aa4685f
fix(firestore): route non-Firestore-host requests (credential negotia…
demolaf 7596ec3
fix(firestore): make the HTTP/2 client multi-host (Http2Client), fixi…
demolaf dfd56ac
refactor(firestore): move _sendOverHttp2 into Http2Client, make it an…
demolaf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awaiting
_collectIfIdleinside thefinallyblock blocks the completion of theruncall (and thus the user's Firestore request) until the idle connection is fully destroyed. Since connection cleanup is a background task, we should run it unawaited to avoid adding unnecessary latency to the user's request.