Skip to content

Instantly share code, notes, and snippets.

@nigoroll
Created February 17, 2019 14:14
Show Gist options
  • Save nigoroll/75468b9a0848dca31a743d001ae01c2c to your computer and use it in GitHub Desktop.
Save nigoroll/75468b9a0848dca31a743d001ae01c2c to your computer and use it in GitHub Desktop.
varnish 2904 vtc without the 503s
varnishtest "VDP gunzip OA_GZIPBITS streaming race"
# Note this should run with -j64 -n10000
server s1 -repeat 50 -keepalive {
rxreq
txresp -gziplen 3167
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
return (pass);
}
} -start
client c1 -repeat 50 {
txreq
rxresp
expect resp.status == 200
# 3167 with a missing 8 bit write is either 3072 or 95
# No Content-Length (chunked) is valid for this race
expect resp.http.Content-Length != "3072"
expect resp.http.Content-Length != "95"
expect resp.bodylen == 3167
} -run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment