Created
February 17, 2019 14:14
-
-
Save nigoroll/75468b9a0848dca31a743d001ae01c2c to your computer and use it in GitHub Desktop.
varnish 2904 vtc without the 503s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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