Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2256

Document that a ClientSession cannot be used for multiple operations concurrently

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.11
    • Docs
    • None

    Description

      The sessions spec says:

      ClientSession instances are not thread safe or fork safe. They can only be used by one thread or process at a time.

      *Drivers MUST document the thread-safety and fork-safety limitations of sessions.* Drivers MUST NOT attempt to detect simultaneous use by multiple threads or processes (see Q&A for the rationale).

      It does not appear that we document this in Python. We should document this in start_session and in ClientSession.

      Attachments

        Activity

          People

            shane.harvey@mongodb.com Shane Harvey
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: