Skip to content

Commit 4eb57f3

Browse files
committed
js feedback
1 parent b950168 commit 4eb57f3

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

source/connect/connection-options.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ Close Sockets After Connection
405405
------------------------------
406406

407407
If you experience unexpected network behavior or if a MongoDB process
408-
fails with an error, you may not receive confirmation that the
408+
fails with an error, you might not receive confirmation that the
409409
driver correctly closed the corresponding socket.
410410

411411
To make sure that the driver correctly closes the socket in these cases,
@@ -436,7 +436,7 @@ The ``keepAlive`` connection option specifies whether to enable
436436
:wikipedia:`Transmission Control Protocol (TCP) keepalives
437437
<Keepalive#TCP_keepalive>` on a TCP socket. If you enable keepalives,
438438
the driver checks whether the connection is active by sending periodic pings
439-
to your MongoDB deployment. This functionality only works if your
439+
to your MongoDB deployment. This functionality works only if your
440440
operating system supports the ``SO_KEEPALIVE`` socket option.
441441

442442
The ``keepAliveInitialDelay`` option specifies the number of

source/connect/connection-troubleshooting.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,3 +370,35 @@ Confirm that your firewall exhibits the following behavior:
370370

371371
To learn more about keepalive messages, see the :ref:`keepAlive Connection Option
372372
<node-faq-keepalive>` section in the Connection Options page.
373+
374+
Connection String Errors for Replica Sets
375+
-----------------------------------------
376+
377+
The connection string passed to the driver must use exact hostnames for
378+
the servers, as set in the :manual:`Replica Set Config </reference/replica-configuration/>`.
379+
Given the following configuration settings for your replica set, in
380+
order for the replica set discovery and :manual:`failover
381+
</reference/glossary/#term-failover>` to work, the driver must have access
382+
to ``server1``, ``server2``, and ``server3``.
383+
384+
.. code-block:: JSON
385+
386+
{
387+
"_id": "testSet",
388+
"version": 1,
389+
"protocolVersion": 1,
390+
"members": [
391+
{
392+
"_id": 1,
393+
"host": "server1:31000"
394+
},
395+
{
396+
"_id": 2,
397+
"host": "server2:31001"
398+
},
399+
{
400+
"_id": 3,
401+
"host": "server3:31002"
402+
}
403+
]
404+
}

source/crud/read-write-pref.txt

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,38 +40,6 @@ concern level set for the client.
4040
These options allow you to customize the causal consistency and availability of the data
4141
in your replica sets.
4242

43-
Connection Strings for Replica Sets
44-
-----------------------------------
45-
46-
The connection string passed to the driver must use exact hostnames for
47-
the servers as set in the :manual:`Replica Set Config </reference/replica-configuration/>`.
48-
Given the following configuration settings for your Replica Set, in
49-
order for the Replica Set discovery and :manual:`failover
50-
</reference/glossary/#term-failover>` to work, the driver must have access
51-
to ``server1``, ``server2``, and ``server3``.
52-
53-
.. code-block:: JSON
54-
55-
{
56-
"_id": "testSet",
57-
"version": 1,
58-
"protocolVersion": 1,
59-
"members": [
60-
{
61-
"_id": 1,
62-
"host": "server1:31000"
63-
},
64-
{
65-
"_id": 2,
66-
"host": "server2:31001"
67-
},
68-
{
69-
"_id": 3,
70-
"host": "server3:31002"
71-
}
72-
]
73-
}
74-
7543
Write Concern
7644
-------------
7745

0 commit comments

Comments
 (0)