Skip to content

Commit a4110db

Browse files
committed
bp feedback
1 parent eb0ecb3 commit a4110db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/connect/connection-options.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ string, see :manual:`Connection Strings </reference/connection-string/>` in the
256256
- non-negative integer
257257
- ``0``
258258
- Specifies the amount of time in milliseconds spent attempting to send or receive
259-
on a socket before timing out. Specifying ``0`` means your application will use the
260-
operating system's default socket timeout value.
259+
on a socket before timing out. Specifying ``0`` means your application sets an
260+
infinite socket timeout when establishing a socket.
261261

262262
* - **srvMaxHosts**
263263
- non-negative integer
@@ -394,12 +394,12 @@ To see all the available settings, see the
394394
`MongoClientOptions <{+api+}/interfaces/MongoClientOptions.html>`__
395395
API Documentation.
396396

397-
To specify ``maxTimeMS``, chain the ``maxTimeMS()`` method with a
398-
timeout specification to an operation that returns a ``Cursor``:
397+
To specify ``maxTimeMS``, pass in the ``maxTimeMS`` method as an option with a timeout
398+
specification to an operation that returns a ``Cursor``:
399399

400400
.. code-block:: javascript
401401

402-
const cursor = myColl.find({}).maxTimeMS(50);
402+
const Cursor = collection.distinct('my-key', { maxTimeMS: 50 });
403403

404404
Close Sockets After Connection
405405
------------------------------

0 commit comments

Comments
 (0)