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
e5a77758
Commit
e5a77758
authored
Mar 06, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More coverage
parent
6b518c48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
cache_http2_proto.c
bin/varnishd/http2/cache_http2_proto.c
+9
-2
t02003.vtc
bin/varnishtest/tests/t02003.vtc
+2
-1
No files found.
bin/varnishd/http2/cache_http2_proto.c
View file @
e5a77758
...
...
@@ -680,10 +680,16 @@ h2_rxframe(struct worker *wrk, struct h2_sess *h2)
// XXX: later, drain rest of frame
h2
->
bogosity
++
;
VSLb
(
h2
->
vsl
,
SLT_Debug
,
"H2: Unknown frame type 0x%02x (ignored)"
,
h2
->
rxf_type
);
"H2: Unknown frame type 0x%02x (ignored)"
,
(
uint8_t
)
h2
->
rxf_type
);
return
(
1
);
}
h2f
=
h2flist
+
h2
->
rxf_type
;
#if 1
AN
(
h2f
->
name
);
AN
(
h2f
->
func
);
#else
/* If we ever get holes in the frame table... */
if
(
h2f
->
name
==
NULL
||
h2f
->
func
==
NULL
)
{
// rfc7540,l,679,681
// XXX: later, drain rest of frame
...
...
@@ -693,12 +699,13 @@ h2_rxframe(struct worker *wrk, struct h2_sess *h2)
h2
->
rxf_type
);
return
(
0
);
}
#endif
if
(
h2
->
rxf_flags
&
~
h2f
->
flags
)
{
// rfc7540,l,687,688
h2
->
bogosity
++
;
VSLb
(
h2
->
vsl
,
SLT_Debug
,
"H2: Unknown flags 0x%02x on %s (ignored)"
,
h2
->
rxf_flags
,
h2f
->
name
);
(
uint8_t
)
h2
->
rxf_flags
,
h2f
->
name
);
h2
->
rxf_flags
&=
h2f
->
flags
;
}
...
...
bin/varnishtest/tests/t02003.vtc
View file @
e5a77758
...
...
@@ -20,6 +20,7 @@ client c1 {
expect goaway.err == PROTOCOL_ERROR
} -start
stream 2 {
sendhex "000003 80 00 00000002 010203"
txprio
} -run
stream 0 -wait
...
...
@@ -106,7 +107,7 @@ client c1 {
client c1 {
stream 0 {
sendhex "000008 06
0
0 00000001 0102030405060708"
sendhex "000008 06
8
0 00000001 0102030405060708"
rxgoaway
expect goaway.laststream == 0
expect goaway.err == PROTOCOL_ERROR
...
...
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