Add CSOT to MongoClient connect

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • 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

              Assignee:
              Unassigned
              Reporter:
              Durran Jordan
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: