directConnection still applied to connection when it is changed to srv after failed connection attempt

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • 1.31.0
    • Affects Version/s: None
    • Component/s: Connectivity
    • None
    • Not Needed
    • None

      Repro (vid attached):
      Connect to a single connection that fails (localhost:27099), cancel the connection. Fill in a connection string with `mongodb+srv` and try connecting, it will fail with `directConnection not supported with SRV URI`
      We probably need to update where we are setting the `directConnection` on a connection

            Assignee:
            Unassigned
            Reporter:
            Rhys Howell
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: