Commit 2fdb50ba authored by Martin Blix Grydeland's avatar Martin Blix Grydeland Committed by Dridi Boukelmoune

Add test case by @rezan for #2976.

parent 5c37624f
varnishtest "Detect probe interval inversion"
barrier bprobe cond 2
server s1 {
# 5 probe requests
rxreq
txresp
close
accept
rxreq
txresp
close
accept
rxreq
txresp
close
accept
rxreq
txresp
close
accept
rxreq
txresp
close
accept
barrier bprobe sync
} -start
varnish v1 -vcl {
backend b1 {
.host = "${s1_addr}";
.port = "${s1_port}";
.probe = {
.interval = 1s;
}
}
backend b2 {
.host = "${bad_ip}";
.probe = {
.interval = 24h;
}
}
sub vcl_recv {
if (!req.url) {
set req.backend_hint = b2;
}
}
} -start
barrier bprobe sync
\ No newline at end of file
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