Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-348

Simplify migrating from Connection to ReplicaSetConnection

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

      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@mongodb.com Bernie Hackett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: