File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,10 @@ def __init__(
401401 "mongodb+srv://" URIs. Defaults to "mongodb". Use it like so::
402402
403403 MongoClient("mongodb+srv://example.com/?srvServiceName=customname")
404+ - `srvMaxHosts`: (int) limits the number of mongos-like hosts a client will
405+ connect to. More specifically, when a "mongodb+srv://" connection string
406+ resolves to more than srvMaxHosts number of hosts, the client will randomly
407+ choose an srvMaxHosts sized subset of hosts.
404408
405409
406410 | **Write Concern options:**
@@ -575,8 +579,8 @@ def __init__(
575579 keyword arguments.
576580 - The default for `uuidRepresentation` was changed from
577581 ``pythonLegacy`` to ``unspecified``.
578- - Added the ``srvServiceName`` and ``maxConnecting `` URI and
579- keyword argument .
582+ - Added the ``srvServiceName``, ``maxConnecting``, and ``srvMaxHosts `` URI and
583+ keyword arguments .
580584
581585 .. versionchanged:: 3.12
582586 Added the ``server_api`` keyword argument.
You can’t perform that action at this time.
0 commit comments