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
3c04f5c7
Commit
3c04f5c7
authored
Mar 08, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Strip flags & final_flags when we switch to CONTINUATION headers.
Fixes #2934
parent
d32c475d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
cache_http2_send.c
bin/varnishd/http2/cache_http2_send.c
+2
-0
r02934.vtc
bin/varnishtest/tests/r02934.vtc
+27
-0
No files found.
bin/varnishd/http2/cache_http2_send.c
View file @
3c04f5c7
...
...
@@ -337,6 +337,8 @@ H2_Send(struct worker *wrk, struct h2_req *r2,
p
+=
tf
;
len
-=
tf
;
ftyp
=
ftyp
->
continuation
;
flags
&=
ftyp
->
flags
;
final_flags
&=
ftyp
->
flags
;
}
while
(
!
h2
->
error
&&
len
>
0
);
}
}
bin/varnishtest/tests/r02934.vtc
0 → 100644
View file @
3c04f5c7
varnishtest "Bug in CONTINUATION flags when no sendbody"
server s1 {
rxreq
expect req.proto == HTTP/1.1
txresp -hdr "Content-Type: text/plain" -hdrlen Foo 100
} -start
varnish v1 -cliok "param.set feature +http2"
varnish v1 -cliok "param.set debug +syncvsl"
varnish v1 -cliok "param.set debug +h2_nocheck"
varnish v1 -vcl+backend { } -start
client c1 {
stream 0 {
txsettings -framesize 64
rxsettings
} -run
stream 1 {
txreq -req HEAD
rxresp
expect resp.status == 200
expect resp.http.content-Type == "text/plain"
} -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