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: 6 additions & 0 deletions source/faq.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S: I think you should clip the last few sentences from the preceding paragraph and combine them into this note. Right now, the paragraph says

Calling MongoClient.close() 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.

But then this note contradicts that point. Maybe the combined content could express the following points:

  • Calling MongoClient.close() closes only inactive sockets
  • It also closes existing sessions and txns
  • So, even though you might not impact operations by closing a socket, you might impact an operation occurring in a transaction


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"?
-------------------------------------------------------------------------------------

Expand Down
Loading