From a98618e8bf9f956428a2606ddee634f976e4f63c Mon Sep 17 00:00:00 2001 From: norareidy Date: Thu, 1 Aug 2024 11:33:59 -0400 Subject: [PATCH] DOCSP-40094: Clarify MongoClient.close() behavior --- source/faq.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/faq.txt b/source/faq.txt index 03affac7..10c40f1f 100644 --- a/source/faq.txt +++ b/source/faq.txt @@ -106,6 +106,12 @@ closes only inactive sockets, so you cannot interrupt or terminate any ongoing operations by using this method. The driver closes these sockets only when the process completes. +.. note:: + + The ``MongoClient.close()`` method closes existing sessions and + transactions, which might indirectly affect the behavior of ongoing + operations and open cursors. + What Is the Difference Between "connectTimeoutMS", "socketTimeoutMS" and "maxTimeMS"? -------------------------------------------------------------------------------------