forked from domodwyer/mgo
-
Notifications
You must be signed in to change notification settings - Fork 230
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
Separate read/write network timeouts #161
Merged
Merged
Commits on May 9, 2018
-
socket: separate read/write network timeouts
Splits DialInfo.Timeout (defaults to 60s when using mgo.Dial()) into ReadTimeout and WriteTimeout to address #160. Read/write timeout defaults to DialInfo.Timeout to preserve existing behaviour.
Configuration menu - View commit details
-
Copy full SHA for 775e6d7 - Browse repository at this point
Copy the full SHA 775e6d7View commit details -
Only used by tests, replaced by the pool-aware acquire socket functions: * AcquireSocketWithPoolTimeout * AcquireSocketWithBlocking
Configuration menu - View commit details
-
Copy full SHA for 95f2333 - Browse repository at this point
Copy the full SHA 95f2333View commit details -
cluster: use configured timeouts for cluster operations
* `mongoCluster.syncServer()` no longer uses hard-coded 5 seconds * `mongoCluster.isMaster()` no longer uses hard-coded 10 seconds
Configuration menu - View commit details
-
Copy full SHA for 545befd - Browse repository at this point
Copy the full SHA 545befdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b17aab - Browse repository at this point
Copy the full SHA 3b17aabView commit details -
server: fix fantastic serverTags nil slice bug
When unmarshalling serverTags, it is now an empty slice, instead of a nil slice. `len(thing) == 0` works all the time, regardless.
Configuration menu - View commit details
-
Copy full SHA for c0b9052 - Browse repository at this point
Copy the full SHA c0b9052View commit details
Commits on May 11, 2018
-
Configuration menu - View commit details
-
Copy full SHA for fbe8acd - Browse repository at this point
Copy the full SHA fbe8acdView commit details -
session: avoid calculating default values in hot path
Changes `DialWithInfo` to handle setting default values by setting the relevant `DialInfo` field, rather than calling the respective methods in the hot path for: * `PoolLimit` * `ReadTimeout` * `WriteTimeout`
Configuration menu - View commit details
-
Copy full SHA for 2573a57 - Browse repository at this point
Copy the full SHA 2573a57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 716ee13 - Browse repository at this point
Copy the full SHA 716ee13View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22be2e3 - Browse repository at this point
Copy the full SHA 22be2e3View commit details
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.