Page MenuHomePhabricator
Paste P7876

timeout-no-timestamp-resp.vtc
ActivePublic

Authored by ema on Dec 3 2018, 8:25 AM.
Tags
None
Referenced Files
F27361448: timeout-no-timestamp-resp.vtc
Dec 3 2018, 8:25 AM
Subscribers
None
varnishtest "Timestamp:Resp not generated in case of origin server timeout"
server s1 {
rxreq
delay 2
txresp
} -start
varnish v1 -arg "-p cc_command='exec gcc -std=gnu99 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread -fpic -shared -Wl,-x -L/usr/local/lib/ -o %o %s -lmaxminddb' -p vcc_allow_inline_c=true -p vcc_err_unref=false -p first_byte_timeout=1" -vcl+backend {
backend vtc_backend {
.host = "${s1_addr}"; .port = "${s1_port}";
}
include "/usr/share/varnish/tests/wikimedia_misc-frontend.vcl";
}
# Attach the "wikimedia_misc" label to wikimedia_misc-frontend.vcl
varnish v1 -cli "vcl.label wikimedia_misc vcl1"
varnish v1 -vcl {
backend vtc_backend {
.host = "${s1_addr}"; .port = "${s1_port}";
}
include "/usr/share/varnish/tests/wikimedia_text-frontend.vcl";
} -start
client c1 {
txreq -hdr "Host: en.wikipedia.org" -hdr "X-Forwarded-Proto: https"
rxresp
expect resp.status == 200
} -run