Commit 6768c376 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Ignore missing reason in probe responses

This is a cherry-pick of 3271c51e that
fixed the issue for Varnish 3.0 since it wasn't a problem in the 4.1
series then. This is only a back-port of the regression test since the
referenced commits already fixed the regression.

Refs 5e4d6c84
Refs 9f422620
Refs #2069
parent c271aef9
varnishtest "Probe response without a reason"
server s1 -repeat 20 {
rxreq
send "HTTP/1.1 200\r\n\r\n"
} -start
varnish v1 -vcl {
import std;
backend s1 {
.host = "${s1_addr}";
.port = "${s1_port}";
.probe = {
.initial = 0;
.window = 5;
.threshold = 5;
.interval = 100ms;
}
}
sub vcl_recv {
if (std.healthy(req.backend_hint)) {
return (synth(200));
}
else {
return (synth(500));
}
}
} -start
delay 1
client c1 {
txreq
rxresp
expect resp.status == 200
} -run
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