-
Notifications
You must be signed in to change notification settings - Fork 912
GODRIVER-2038 Make all connections in the background using connectTimeoutMS. #716
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
GODRIVER-2038 Make all connections in the background using connectTimeoutMS. #716
Conversation
5f9e0d9
to
2def9ae
Compare
56a3a88
to
1530024
Compare
633f69c
to
c546264
Compare
ffe57e8
to
6cc7f51
Compare
4c6e87d
to
184cf7d
Compare
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.
LGTM!
6779ffe
to
241b1e3
Compare
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.
Phenominal work. Looks good pending:
- The removal of WaitQueueTimeoutMS in the PoolCreated event.
- Rate limit of 10 connections in
maintain
.
39c03de
to
94c9917
Compare
…ckground goroutines ctx.
Co-authored-by: Benjamin Rewis <[email protected]>
Co-authored-by: Kevin Albertson <[email protected]>
Co-authored-by: Kevin Albertson <[email protected]>
Co-authored-by: Kevin Albertson <[email protected]> Co-authored-by: Benjamin Rewis <[email protected]>
…ify disconnect().
94c9917
to
b0a6da0
Compare
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.
LGTM! Reviewed the latest two commits for the stress test fix, requesting a max of 10 connections in maintain, and disconnect simplification. Nicely done.
Refactor the Go driver connection pool to establish all new connections in background goroutines.
Changes:
connectTimeoutMS
(default 30s) as the timeout for establishing all new connections.checkOut
deadline.get()
->checkOut()
andput()
->checkIn()
to align with CMAP naming.GODRIVER-2038
GODRIVER-2044