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

Document that a ClientSession cannot be used for multiple operations concurrently

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11
    • Affects Version/s: None
    • Component/s: Docs
    • None

      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.

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

              Created:
              Updated:
              Resolved: