Commit 98f3f953 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Retire a misleading construct

The port may not be hardcoded, it is still available for other processes
to steal during the race between `varnish v1 -stop` and the next `varnishd`
execution.
parent bfd84dd9
varnishtest "Check that we fail to start with erroneous -a/-b arguments"
varnish v1 -vcl {
backend dummy { .host = "${bad_backend}"; }
} -start -stop
# Duplicate -a arguments
# XXX: this cannot be tested reliably, we tolerate port collision
shell -err -match "have same address|already in use" {
varnishd -d -a 127.0.0.1:${v1_port} -a 127.0.0.1:${v1_port} \
-b localhost:80
varnishd -d -a 127.0.0.1:38484 -a 127.0.0.1:38484 -b localhost:80
}
# -a bad protocol specs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment