The serverSelectionTryOnce option is enabled by default, and there isn't a straightforward way to disable it from the CXX or C drivers. As a workaround, we can examine the given string URI and append &serverselectiontryonce=false (or ?serverselectiontryonce=false if there are no other options in the URI), but it’s not ideal.
- is depended on by
-
SERVER-99330 Disable the serverSelectionTryOnce option when creating mongocxx client
-
- Open
-