Skip to content

Commit 6f0fa8a

Browse files
ilfroloffdaprahamian
authored andcommitted
docs(socketTimeoutMS): changed socket timeout value in minutes to correct one
1 parent 486cfe7 commit 6f0fa8a

File tree

1 file changed

+1
-1
lines changed
  • docs/reference/content/reference/faq

1 file changed

+1
-1
lines changed

docs/reference/content/reference/faq/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ title = "Frequently Asked Questions"
1313
| Setting | Default Value MongoClient.connect | Description |
1414
| :----------| :------------- | :------------- |
1515
| connectTimeoutMS | 30000 | The connectTimeoutMS sets the number of milliseconds a socket stays inactive before closing during the connection phase of the driver. That is to say, when the application initiates a connection, when a replica set connects to new members, or when a replica set reconnects to members. A value of 10000 milliseconds would mean the driver would wait up to 10 seconds for a response from a MongoDB server.|
16-
| socketTimeoutMS | 360000 | The socketTimeoutMS sets the number of milliseconds a socket stays inactive after the driver has successfully connected before closing. If the value is set to 360000 milliseconds, the socket closes if there is no activity during a 30 seconds window.|
16+
| socketTimeoutMS | 360000 | The socketTimeoutMS sets the number of milliseconds a socket stays inactive after the driver has successfully connected before closing. If the value is set to 360000 milliseconds, the socket closes if there is no activity during a 6 minutes window.|
1717
| maxTimeMS | N/A | The maxTimeMS setting specifies how long MongoDB should run an operation before cancelling it. If the maxTimeMS is set to 10000 milliseconds, any operation that runs over that limit returns a timeout error.|
1818

1919
#### Fail fast during connection

0 commit comments

Comments
 (0)