File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -102,9 +102,11 @@ during a load spike than it is to complete every operation.
102
102
When ``MongoClient.close()`` is called by any request, the driver
103
103
closes all idle sockets and closes all sockets that are in
104
104
use as they are returned to the pool. Calling ``MongoClient.close()``
105
- closes only inactive sockets, so you cannot interrupt or terminate
106
- any ongoing operations by using this method. The driver closes these
107
- sockets only when the process completes.
105
+ closes only inactive sockets and does not directly terminate
106
+ any ongoing operations. The driver closes any in-use sockets only when
107
+ the associated operations complete. However, the ``MongoClient.close()``
108
+ method does close existing sessions and transactions, which might indirectly
109
+ affect the behavior of ongoing operations and open cursors.
108
110
109
111
What Is the Difference Between "connectTimeoutMS", "socketTimeoutMS" and "maxTimeMS"?
110
112
-------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments