-
Type:
New Feature
-
Resolution: Duplicate
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
Not Needed
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Use Case
As a developer
I want to be able to use CSOT with connect
So that I can short circuit long running connection times
User Experience
- Users can short circuit connection times so that connect doesn't hang up to serverSelectionTimeoutMS or socketTimeoutMS
Dependencies
- None
Risks/Unknowns
- None
Acceptance Criteria
Implementation Requirements
- Add a timeoutMS option to MongoClient connect()
- Ensure the timeoutMS follows the standard CSOT rules with regards to serverSelectionTimeoutMS and socketTimeoutMS and will throw on connect if the timeout is reached.
Testing Requirements
- Ensure integration tests around connect for timeoutMS and legacy timeout options
Documentation Requirements
- API docs for connect
Follow Up Requirements
- None