summaryrefslogtreecommitdiff
path: root/tests/scgi-responder.conf
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-01-01 13:44:00 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2021-01-05 12:52:11 -0500
commit5b1b9f78247e122804490b17112e94df32851464 (patch)
treee8b7580206627e5cd84e9fa4c01dcd0296344da6 /tests/scgi-responder.conf
parent048af4c5063485b65d9919f6a7a5d28c1db02d66 (diff)
downloadlighttpd-git-5b1b9f78247e122804490b17112e94df32851464.tar.gz
[tests] use ephemeral ports in tests
avoid spurious test failures due to conflicts with ports in use by other processes, which might occur when tests use hard-coded ports
Diffstat (limited to 'tests/scgi-responder.conf')
-rw-r--r--tests/scgi-responder.conf14
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/scgi-responder.conf b/tests/scgi-responder.conf
index 4ccaf1eb..0fe5181d 100644
--- a/tests/scgi-responder.conf
+++ b/tests/scgi-responder.conf
@@ -1,14 +1,9 @@
-server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
-
#debug.log-request-header = "enable"
#debug.log-response-header = "enable"
#debug.log-request-handling = "enable"
-## bind to port (default: 80)
-server.port = 2048
-
-## bind to localhost (default: all interfaces)
-server.bind = "localhost"
+server.systemd-socket-activation = "enable"
+server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
server.name = "www.example.org"
@@ -27,7 +22,7 @@ scgi.server = (
".scgi" => (
"grisu" => (
"host" => "127.0.0.1",
- "port" => 10000,
+ "port" => env.EPHEMERAL_PORT,
"bin-path" => env.SRCDIR + "/scgi-responder",
"check-local" => "disable",
"max-procs" => 1,
@@ -39,7 +34,8 @@ scgi.server = (
$HTTP["host"] == "wsgi.example.org" {
scgi.server = (
"/" => ( (
- "host" => "127.0.0.1", "port" => 10000,
+ "host" => "127.0.0.1",
+ "port" => env.EPHEMERAL_PORT,
"fix-root-scriptname" => "enable",
"check-local" => "disable",
"bin-path" => env.SRCDIR + "/scgi-responder",