Skip to content

Commit d3150b2

Browse files
DOCSP-41823: autoSelectFamily and autoSelectFamilyAttemptTimeout options (#944) (#947)
1 parent cbfff90 commit d3150b2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

source/fundamentals/connection/connection-options.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,21 @@ parameters of the connection URI to specify the behavior of the client.
5353
- ``null``
5454
- Specifies the database that connections authenticate against.
5555

56+
* - **autoSelectFamily**
57+
- boolean
58+
- ``true``
59+
- If set to ``true``, the socket attempts to connect to IPv6 and IPv4 addresses
60+
until a connection is established. If available, the driver will select
61+
the first IPv6 address.
62+
63+
* - **autoSelectFamilyAttemptTimeout**
64+
- non-negative integer
65+
- ``null``
66+
- Specifies the amount of time in milliseconds to wait for a connection
67+
attempt to finish before trying the next address when using the
68+
``autoSelectFamily`` option. If set to a positive integer less than ``10``,
69+
the value ``10`` is used instead.
70+
5671
* - **compressors**
5772
- comma separated list of strings, for example, "snappy,zlib,zstd"
5873
- ``null``

0 commit comments

Comments
 (0)