Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/mongo_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ export interface MongoClientOptions extends BSONSerializeOptions, SupportedNodeC
minPoolSize?: number;
/** The maximum number of connections that may be in the process of being established concurrently by the connection pool. */
maxConnecting?: number;
/** The maximum number of milliseconds that a connection can remain idle in the pool before being removed and closed. */
/**
Comment thread
dariakp marked this conversation as resolved.
* The maximum number of milliseconds that a connection can remain idle in the pool before being removed and closed.
* Note that idle connections in the pool can be cleaned up even whe minPoolSize is set to 0. For errors that happen
Comment thread
durran marked this conversation as resolved.
Outdated
* that include the InterruptInUseConnections label, all non idle connections will be closed as well.
*/
maxIdleTimeMS?: number;
/** The maximum time in milliseconds that a thread can wait for a connection to become available. */
waitQueueTimeoutMS?: number;
Expand Down