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

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11
    • Component/s: Documentation
    • Labels:
      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

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

              Dates

              Created:
              Updated:
              Resolved: