-
Type:
Improvement
-
Resolution: Done
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: None
```MongoClient.connect('mongodb://localhost/db?maxIdleTimeMS=100', (err) => {})``` will crash the running process.
"maxIdleTimeMS" is unsupported, but instead of just shutting down the process, it should probably emit a warning and dismiss the unsupported parameter, or try...catch and call the callback function with the error as first parameter.
The ```parse``` function throws in ```url_parser.js:234```.
The caller is ```mongo_client:289```
So my suggestion is :
- Emit a warning and ignore the parameter
- try...catch the call to that function in mongo_client.