Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
b8506b30
Commit
b8506b30
authored
Mar 07, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test H2 Continuation headers
parent
39211f97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
4 deletions
+44
-4
cache_http2_send.c
bin/varnishd/http2/cache_http2_send.c
+3
-4
t02007.vtc
bin/varnishtest/tests/t02007.vtc
+41
-0
No files found.
bin/varnishd/http2/cache_http2_send.c
View file @
b8506b30
...
@@ -125,21 +125,20 @@ H2_Send(struct worker *wrk, struct h2_req *r2, int flush,
...
@@ -125,21 +125,20 @@ H2_Send(struct worker *wrk, struct h2_req *r2, int flush,
ftyp
,
flags
,
len
,
r2
->
stream
,
ptr
);
ftyp
,
flags
,
len
,
r2
->
stream
,
ptr
);
}
else
{
}
else
{
AN
(
ptr
);
AN
(
ptr
);
AN
(
len
);
p
=
ptr
;
p
=
ptr
;
final_flags
=
ftyp
->
final_flags
&
flags
;
final_flags
=
ftyp
->
final_flags
&
flags
;
flags
&=
~
ftyp
->
final_flags
;
flags
&=
~
ftyp
->
final_flags
;
do
{
do
{
AN
(
ftyp
->
continuation
);
AN
(
ftyp
->
continuation
);
tf
=
mfs
;
tf
=
mfs
;
if
(
tf
>
len
)
{
if
(
tf
<
len
)
{
tf
=
len
;
retval
=
H2_Send_Frame
(
wrk
,
h2
,
ftyp
,
retval
=
H2_Send_Frame
(
wrk
,
h2
,
ftyp
,
flags
,
tf
,
r2
->
stream
,
p
);
flags
,
tf
,
r2
->
stream
,
p
);
flags
=
0
;
}
else
{
}
else
{
tf
=
len
;
retval
=
H2_Send_Frame
(
wrk
,
h2
,
ftyp
,
retval
=
H2_Send_Frame
(
wrk
,
h2
,
ftyp
,
final_flags
,
tf
,
r2
->
stream
,
p
);
final_flags
,
tf
,
r2
->
stream
,
p
);
flags
=
0
;
}
}
p
+=
tf
;
p
+=
tf
;
len
-=
tf
;
len
-=
tf
;
...
...
bin/varnishtest/tests/t02007.vtc
0 → 100644
View file @
b8506b30
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment