...
 
Commits (2)
......@@ -8,6 +8,7 @@ varnishtest "test error handling"
server s1 {
rxreq
txresp -nolen -hdr "Content-Encoding: br" -hdr "Content-Length: 4"
delay .2
sendhex "de ad be ef"
expect_close
} -start
......@@ -27,11 +28,17 @@ varnish v1 -arg "-p vsl_mask=+VfpAcct" -vcl+backend {
client c1 {
txreq
rxresphdrs
expect resp.status == 200
expect_close
} -run
server s1 -wait
server s1 -start
server s1 {
rxreq
txresp -nolen -hdr "Content-Encoding: br" -hdr "Content-Length: 4"
sendhex "de ad be ef"
expect_close
} -start
varnish v1 -vcl+backend {
import ${vmod_brotli};
......@@ -62,18 +69,18 @@ server s1 {
client c1 -run
logexpect l1 -v v1 -d 1 -g vxid -q "VfpAcct" {
expect 0 * Begin bereq
expect * = FetchError {^Invalid brotli data: \S+}
expect * = VfpAcct {^unbr \d+ 0$}
expect * = End
expect 0 * Begin bereq
expect * = FetchError {^Invalid brotli data: \S+}
expect * = VfpAcct {^unbr \d+ 0$}
expect * = End
expect 0 * Begin bereq
expect * = FetchError "Junk after brotli data"
expect * = VfpAcct {^unbr \d+ 0$}
expect * = End
expect 0 * Begin bereq
expect * = FetchError {^Invalid brotli data: \S+}
expect * = VfpAcct {^unbr \d+ 0$}
expect * = End
expect 0 * Begin bereq
expect * = FetchError {^Invalid brotli data: \S+}
expect * = VfpAcct {^unbr \d+ 0$}
expect * = End
expect 0 * Begin bereq
expect * = FetchError "Junk after brotli data"
expect * = VfpAcct {^unbr \d+ 0$}
expect * = End
} -run