Priority: Trivial - P5
Affects Version/s: 3.0
Fix Version/s: 3.0.1
MongoClient supports the connectTimeoutMS, parameter:
connectTimeoutMS: (integer or None) How long (in milliseconds) a connection can take to be opened before timing out. Defaults to 20000.
However with the latest Topology bits connections spend server_selection_timeout waiting for the initial connection (this is set to 30s by default):
It would be good if connectTimeoutMS - which is the only parameter defined as API - influenced server_selection_timeout.
Looking at the code it is possible to override server_selection_timeout by passing: serverselectiontimeoutms, but I can't find this documented.