Commit faec2d33 authored by Carlo Cannas's avatar Carlo Cannas Committed by Dridi Boukelmoune

Don't use txprio to open streams in tests

As per spec a client can only send a HEADERS frame to cause a stream to
transition from the "idle" state to "open". A PRIORITY frame can be sent to an
"idle" stream, but it will remain in that state.

rfc7540,l,916,940
https://tools.ietf.org/html/rfc7540#section-5.1

To open a stream the command

txreq -nostrend

can be used. The -nostrend option will ensure that the stream won't transition
to a "half-closed" state.
parent eff757e8
...@@ -43,10 +43,10 @@ client c1 { ...@@ -43,10 +43,10 @@ client c1 {
expect goaway.err == PROTOCOL_ERROR expect goaway.err == PROTOCOL_ERROR
} -start } -start
stream 3 { stream 3 {
txprio txreq
} -run } -run
stream 1 { stream 1 {
txprio txreq
} -run } -run
stream 0 -wait stream 0 -wait
} -run } -run
...@@ -63,13 +63,13 @@ varnish v1 -expect MEMPOOL.sess1.live == 0 ...@@ -63,13 +63,13 @@ varnish v1 -expect MEMPOOL.sess1.live == 0
client c1 { client c1 {
stream 1 { stream 1 {
txprio txreq -nostrend
txwinup -size 0 txwinup -size 0
rxrst rxrst
expect rst.err == PROTOCOL_ERROR expect rst.err == PROTOCOL_ERROR
} -run } -run
stream 3 { stream 3 {
txprio txreq -nostrend
txwinup -size 0x40000000 txwinup -size 0x40000000
txwinup -size 0x40000000 txwinup -size 0x40000000
rxrst rxrst
...@@ -81,7 +81,7 @@ client c1 { ...@@ -81,7 +81,7 @@ client c1 {
expect goaway.err == FRAME_SIZE_ERROR expect goaway.err == FRAME_SIZE_ERROR
} -start } -start
stream 5 { stream 5 {
txprio txreq -nostrend
sendhex "000003 08 00 00000005" sendhex "000003 08 00 00000005"
delay .1 delay .1
sendhex 01 sendhex 01
...@@ -167,7 +167,7 @@ client c1 { ...@@ -167,7 +167,7 @@ client c1 {
expect goaway.laststream == 1 expect goaway.laststream == 1
} -start } -start
stream 1 { stream 1 {
txprio txreq -nostrend
sendhex "000008 05 00 00000001 0001020304050607" sendhex "000008 05 00 00000001 0001020304050607"
} -run } -run
stream 0 -wait stream 0 -wait
...@@ -200,7 +200,7 @@ client c1 { ...@@ -200,7 +200,7 @@ client c1 {
expect goaway.laststream == 1 expect goaway.laststream == 1
} -start } -start
stream 1 { stream 1 {
txprio txreq -nostrend
# RST wrong length # RST wrong length
sendhex "000005 03 00 00000001 0000000800" sendhex "000005 03 00 00000001 0000000800"
} -run } -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