Commit ba20559c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a coverage test for -sfile

parent 14bb0312
varnishtest "Coverage test for -sfile"
server s1 {
rxreq
txresp -nolen -hdr "Transfer-encoding: chunked"
chunkedlen 65536
chunkedlen 65536
chunkedlen 65536
chunkedlen 65536
chunkedlen 1
chunkedlen 0
rxreq
txresp -nolen -hdr "Transfer-encoding: chunked"
chunkedlen 262
chunkedlen 0
} -start
varnish v1 \
-arg "-sfile,${tmpdir}/_.file,10m" \
-vcl+backend {
sub vcl_backend_response {
set beresp.do_stream = false;
set beresp.ttl = 0.1s;
set beresp.grace = 0.1s;
set beresp.keep = 0.1s;
}
} \
-start
client c1 {
txreq
rxresp
expect resp.bodylen == 262145
delay 2
txreq
rxresp
expect resp.bodylen == 262
} -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