Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2178

Move SRV resolution logic to Client configure

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • None

       

      We recently added support for two new URI options: srvServiceName and srvMaxHosts. These URI options now have corresponding fields on ClientOptions.

      If a user calls ApplyURI, an SRV lookup will be performed for initial DNS seedlist discovery using the values in SRVMaxHosts and SRVServiceName. If a user has not yet called SetSRVServiceName or SetSRVMaxHosts before calling ApplyURI, their requested SRV options will not be honored.

      We should move the SRV resolution logic to Client#Configure instead of ClientOptions#ApplyURI, so that the order of operations does not matter.

            Assignee:
            Unassigned Unassigned
            Reporter:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: