Commit 3c6c0917 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

varnishtest: Skip dispatch servers for -vcl+backend

We don't want to list ephemeral backends when we load a new VCL after
getting some s0 traffic.
parent af87f0cd
......@@ -428,6 +428,9 @@ cmd_server_gen_vcl(struct vsb *vsb)
AZ(pthread_mutex_lock(&server_mtx));
VTAILQ_FOREACH(s, &servers, list) {
if (s->sock < 0 && s->fd >= 0) /* dispatch instance */
continue;
if (*s->listen != '/')
VSB_printf(vsb,
"backend %s { .host = \"%s\"; "
......
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