Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-724

Add clearer docs around forking and threading concerns

    XMLWordPrintableJSON

Details

    • Task
    • Status: Backlog
    • Minor - P4
    • Resolution: Unresolved
    • None
    • None
    • Docs
    • None

    Description

      The PHPC documentation warns users about forking (e.g. Manager::__construct(), but we don't go into significant detail about why driver objects cannot be shared across processes/threads. PHPC only refers to forking (not threads), and neither forking nor threads are discussed in the PHPLIB docs at all.

      We would do well to summarize the explanation from PHPLIB-723 and ensure this is communicated clearly in documentation for both projects. Additionally, we can discuss how disableClientPersistence can be utilized (e.g. constructing Managers after spawning processes or threads).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jmikola@mongodb.com Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: