From ad6cc4f937536ccdc7dec08ae6e313bfcaf6b364 Mon Sep 17 00:00:00 2001 From: Maya Raman Date: Tue, 10 Dec 2024 10:20:02 -0500 Subject: [PATCH] DOCSP-41823: `autoSelectFamily` and `autoSelectFamilyAttemptTimeout` options (#944) (cherry picked from commit 6d1bb81341b001abee50eabb3c42fcb8f73d7a1c) --- .../connection/connection-options.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/fundamentals/connection/connection-options.txt b/source/fundamentals/connection/connection-options.txt index 86c7db6d4..eb8ea29b1 100644 --- a/source/fundamentals/connection/connection-options.txt +++ b/source/fundamentals/connection/connection-options.txt @@ -53,6 +53,21 @@ parameters of the connection URI to specify the behavior of the client. - ``null`` - Specifies the database that connections authenticate against. + * - **autoSelectFamily** + - boolean + - ``true`` + - If set to ``true``, the socket attempts to connect to IPv6 and IPv4 addresses + until a connection is established. If available, the driver will select + the first IPv6 address. + + * - **autoSelectFamilyAttemptTimeout** + - non-negative integer + - ``null`` + - Specifies the amount of time in milliseconds to wait for a connection + attempt to finish before trying the next address when using the + ``autoSelectFamily`` option. If set to a positive integer less than ``10``, + the value ``10`` is used instead. + * - **compressors** - comma separated list of strings, for example, "snappy,zlib,zstd" - ``null``