Commit b8506b30 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Test H2 Continuation headers

parent 39211f97
......@@ -125,21 +125,20 @@ H2_Send(struct worker *wrk, struct h2_req *r2, int flush,
ftyp, flags, len, r2->stream, ptr);
} else {
AN(ptr);
AN(len);
p = ptr;
final_flags = ftyp->final_flags & flags;
flags &= ~ftyp->final_flags;
do {
AN(ftyp->continuation);
tf = mfs;
if (tf > len) {
tf = len;
if (tf < len) {
retval = H2_Send_Frame(wrk, h2, ftyp,
flags, tf, r2->stream, p);
flags = 0;
} else {
tf = len;
retval = H2_Send_Frame(wrk, h2, ftyp,
final_flags, tf, r2->stream, p);
flags = 0;
}
p += tf;
len -= tf;
......
varnishtest "H2 Huge response headers"
server s1 {
rxreq
expect req.proto == HTTP/1.1
txresp -hdr "Content-Type: text/plain" -hdrlen Foo 100 -bodylen 100
} -start
varnish v1 -vcl+backend {} -cliok "param.set feature +http2" -start
varnish v1 -cliok "param.set debug +syncvsl"
varnish v1 -cliok "param.set debug +h2_nocheck"
client c1 {
stream 0 {
txsettings -framesize 64
rxsettings
} -run
stream 1 {
txreq \
-req POST \
-hdr content-type text/plain \
-nostrend \
-nohdrend
txcont \
-hdr expect 100-continue \
-hdr content-length 7 \
-nostrend
txdata \
-data request
rxhdrs
expect resp.status == 100
rxresp
expect resp.status == 200
expect resp.http.content-Type == "text/plain"
expect resp.bodylen == 100
} -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