-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
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.