Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-145

Make number of mutex locks configurable at apache startup

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.x
    • Fix Version/s: 3.2.10, 3.3.1
    • Component/s: core
    • Labels:
      None

      Description

      The number of locks can already be specified at compile time usine ./configure --with-max-locks=value
      For completeness, the maximum number of mutex locks created by python_init should be configurable via a PythonOption. The number of locks will only be set if the PythonOption directive appears in the server context. Any other context will be ignored.

      PythonOption mod_python.mutex_locks value

      The implementation of this will be similar to the code required for http://issues.apache.org/jira/browse/MODPYTHON-131.

      The number of locks can already be specified at compile time usine ./configure --with-max-locks=value

        Activity

        Hide
        jgallacher Jim Gallacher added a comment -

        Use of this PythonOption to configure apache in the unit tests interferes with unit tests which are testing the PythonOption itself. These other tests assume that PythonOption is only used in the testing of PythonOption, and will need to be rewritten if we want to take advantage of PythonOption mod_python.mutex_locks or PythonOption mod_python.mutex_directory in the tests.

        Show
        jgallacher Jim Gallacher added a comment - Use of this PythonOption to configure apache in the unit tests interferes with unit tests which are testing the PythonOption itself. These other tests assume that PythonOption is only used in the testing of PythonOption, and will need to be rewritten if we want to take advantage of PythonOption mod_python.mutex_locks or PythonOption mod_python.mutex_directory in the tests.

          People

          • Assignee:
            jgallacher Jim Gallacher
            Reporter:
            jgallacher Jim Gallacher
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development