-
Notifications
You must be signed in to change notification settings - Fork 311
Get/Return pooled connections #3404
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
mdaigle
wants to merge
31
commits into
dotnet:main
Choose a base branch
from
mdaigle:dev/mdaigle/get-return-pooled-connections
base: main
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.
Open
Changes from 28 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
87a1129
Add get flow and basic tests.
mdaigle 4233f94
Add tests. Clean up diff.
mdaigle fb8c9d0
Add additional tests. Refactor to test error behavior.
mdaigle 73a379b
Implement return flow and add return/reuse tests.
mdaigle 7ac22f6
Clean up comments and todos.
mdaigle 7c75930
Add test cases.
mdaigle 6dde5b9
Enable init property accessor in netfx.
mdaigle 9999bf7
Switch to auto properties.
mdaigle 931ac03
Reorder class members.
mdaigle 7d734f9
Address review comments.
mdaigle 12a8121
Merge main
mdaigle ec27e63
Fix channels package resolution.
mdaigle c4d5808
Review changes.
mdaigle 0451b50
Set CreateTime in constructor. This makes sense becuase CreateTime ca…
mdaigle 3f79f99
Naming
mdaigle 2d260bb
Fix potential connection leak when setting TaskCompletionSource result.
mdaigle 20adc00
Fix package reference for central package management.
mdaigle a440e10
Fix formatting. Refactor get connection loop.
mdaigle 456ea1f
Move concurrent data structures out to dedicated class.
mdaigle 46dd516
Refactor data structure to remove generics, revert to previous logic.
mdaigle 7613b2c
Cleanup
mdaigle f7b9465
Fix timeout exception handling for async path.
mdaigle 4b79754
Merge main
mdaigle 67d0487
Review comments. Fix merge conflict.
mdaigle 0d9b606
Merge branch 'main' of github.com:dotnet/SqlClient into dev/mdaigle/g…
mdaigle 7377e85
Change object reference to full type. Fix tab.
mdaigle 901ba47
cleanup
mdaigle 142f0ca
Add link to github issue for async pathways.
mdaigle 5769604
Remove side effects from IsLiveConnection. Fix exception handling and…
mdaigle bc8b094
Minor review feedback. Make tests more reliable.
mdaigle 92528d3
Fix compilation
mdaigle 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
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
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
init
means "Must be assigned during construction", but doesn't restrict that assignment to a constructor body. A caller could do this:The initializer body runs after the constructor body, but still during construction. This isn't what we want.
I think all you need is:
That will make CrateTime immutable - you will be forced to assign it in all constructor bodies, and then prohibited from assigning to it anywhere else.
I suspect this applies to all of your use of
init
in this PR.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.
Makes sense, I didn't realize the
init
properties could be set in that way.