[DOCS-10410] FAQ socketTimeoutMS error in description Created: 20/Jun/17  Updated: 27/Oct/23  Resolved: 20/Aug/19

Status: Closed
Project: Documentation
Component/s: drivers
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Xenia Siskaki [X] Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 4 years, 25 weeks, 1 day ago

 Description   

The description in http://mongodb.github.io/node-mongodb-native/2.2/reference/faq/ for the socketTimeoutMS contains a mistake regarding how many minutes 360000 ms are, as it states it's 30 secs. Same mistake exists in other versions as well



 Comments   
Comment by Nathan Leniz [ 20/Aug/19 ]

This is no longer the case. Current documentation correctly states 6 minutes, and the default is 360000 MS.

Comment by Youri Tolstoy [ 23/Jun/17 ]

Indeed, on top just to be sure I checked the code in mongo_client.js and it states the following:

// Set the socket and connection timeouts
if(options.socketTimeoutMS == null) options.socketTimeoutMS = 30000;
if(options.connectTimeoutMS == null) options.connectTimeoutMS = 30000;

So it's 30s and 30s for both connectTimeoutMS and socketTimeoutMS

Generated at Thu Feb 08 08:00:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.