Skip to content

Commit

Permalink
vtc: Coverage for initial h2 settings
Browse files Browse the repository at this point in the history
There's no way to probe the current push status or maximum frame size.
  • Loading branch information
Dridi committed Apr 4, 2024
1 parent 65a42d1 commit 6c27aae
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions bin/varnishtest/tests/t02000.vtc
Expand Up @@ -35,7 +35,7 @@ client c1 {
varnish v1 -cliok "param.set feature +http2"
varnish v1 -cliok "param.reset h2_initial_window_size"

client c1 {
client c2 {
stream 1 {
txprio -weight 10 -stream 0
} -run
Expand Down Expand Up @@ -86,7 +86,7 @@ varnish v1 -syntax 4.1 -vcl+backend {
}
}

client c1 {
client c3 {
stream 7 {
txreq -url "/uncached"
rxresp
Expand All @@ -105,3 +105,35 @@ client c1 {
expect resp.http.C-Sess-XID == resp.http.B-Sess-XID
} -run
} -run

# Check default settings

varnish v1 -cliok "param.reset h2_header_table_size"
varnish v1 -cliok "param.reset h2_max_concurrent_streams"
varnish v1 -cliok "param.reset h2_initial_window_size"
varnish v1 -cliok "param.reset h2_max_frame_size"
varnish v1 -cliok "param.reset h2_max_header_list_size"
varnish v1 -cliok "param.reset http_req_size"

client c4 {
txpri
stream 0 {
# check initial settings from varnishd
txsettings
rxsettings
expect settings.ack == false
expect settings.push == <undef>
expect settings.hdrtbl == <undef>
expect settings.maxstreams == 100
expect settings.winsize == <undef>
expect settings.framesize == <undef>
expect settings.hdrsize ~ ^(12288|32768)$

# check (some) values not set by varnishd
expect stream.window == 65535

txsettings -ack
rxsettings
expect settings.ack == true
} -run
} -run

0 comments on commit 6c27aae

Please sign in to comment.