Simplify migrating from Connection to ReplicaSetConnection

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      It's not currently simple to migrate from Connection to ReplicaSetConnection. The following changes to ReplicaSetConnection make this easier:

      1. Add a host kwarg. If both `host` and `hosts_or_uri` are specified `host` will take precedence.
      2. Add port and network_timeout keyword arguments. If both `network_timeout` and `socketTimeoutMS` are specified `network_timeout` will take precedence, matching connection.Connection.

              Assignee:
              Bernie Hackett
              Reporter:
              Bernie Hackett
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: