Changeset 94430e6 in mod_gnutls for test/proxy_backend.bash


Ignore:
Timestamp:
Oct 10, 2017, 12:32:13 PM (2 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
e00d91a
Parents:
a09df8c
Message:

Test suite: Run a separate Apache instance for the OCSP responder

This change will be needed to cache OCSP responses on start (and
schedule) instead of when needed. An OCSP responder in the same Apache
instance won't be ready while the mod_gnutls post_config hook is
executing.

The changes to lock file handling included in this patch mean that
most parts of the test framework won't need to check which locking
method (if any) is used, they can just pass a lock file which is then
used for flock or PID file checks depending on ./configure results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/proxy_backend.bash

    ra09df8c r94430e6  
    1010    export BACKEND_PORT="9934"
    1111fi
    12 : ${BACKEND_PID:="backend.pid"}
    1312: ${srcdir:="."}
    1413: ${APACHE2:="apache2"}
     
    2120    conf="${2}"
    2221    action="${3}"
    23     # needed only for start
     22    # Needed only for start. The "lockfile" parameter is used as flock
     23    # lock file or PID file to watch depending on whether FLOCK is
     24    # set.
    2425    lockfile="${4}"
    2526
     
    3940                else
    4041                    echo "Locking disabled, using wait based on proxy PID file."
    41                     wait_pid_gone "${BACKEND_PID}"
     42                    wait_pid_gone "${lockfile}"
    4243                fi
    4344                ${flock_cmd} \
Note: See TracChangeset for help on using the changeset viewer.