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
f299ae88
Commit
f299ae88
authored
Apr 06, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark frametypes which get charged to the session as overhead
parent
e57e5417
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
+22
-10
cache_http2.h
bin/varnishd/http2/cache_http2.h
+1
-0
h2_frames.h
include/tbl/h2_frames.h
+21
-10
No files found.
bin/varnishd/http2/cache_http2.h
View file @
f299ae88
...
@@ -74,6 +74,7 @@ struct h2_frame_s {
...
@@ -74,6 +74,7 @@ struct h2_frame_s {
int
respect_window
;
int
respect_window
;
h2_frame
continuation
;
h2_frame
continuation
;
uint8_t
final_flags
;
uint8_t
final_flags
;
int
overhead
;
};
};
#define H2_FRAME(l,U,...) extern const struct h2_frame_s H2_F_##U[1];
#define H2_FRAME(l,U,...) extern const struct h2_frame_s H2_F_##U[1];
...
...
include/tbl/h2_frames.h
View file @
f299ae88
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
* tx_flow-control // rfc7540,l,1265,1270
* tx_flow-control // rfc7540,l,1265,1270
* tx_continuation
* tx_continuation
* tx_final-flags
* tx_final-flags
* overhead
*/
*/
H2_FRAME
(
data
,
DATA
,
0x0
,
0x09
,
H2_FRAME
(
data
,
DATA
,
0x0
,
0x09
,
H2CE_PROTOCOL_ERROR
,
// rfc7540,l,1758,1761
H2CE_PROTOCOL_ERROR
,
// rfc7540,l,1758,1761
...
@@ -45,7 +46,8 @@
...
@@ -45,7 +46,8 @@
H2CE_PROTOCOL_ERROR
,
H2CE_PROTOCOL_ERROR
,
1
,
1
,
H2_F_DATA
,
H2_F_DATA
,
0x01
// rfc7540,l,1750,1753
0x01
,
// rfc7540,l,1750,1753
0
)
)
H2_FRAME
(
headers
,
HEADERS
,
0x1
,
0x2d
,
H2_FRAME
(
headers
,
HEADERS
,
0x1
,
0x2d
,
H2CE_PROTOCOL_ERROR
,
// rfc7540,l,1876,1879
H2CE_PROTOCOL_ERROR
,
// rfc7540,l,1876,1879
...
@@ -53,7 +55,8 @@
...
@@ -53,7 +55,8 @@
0
,
// rfc7540,l,938,940
0
,
// rfc7540,l,938,940
0
,
0
,
H2_F_CONTINUATION
,
H2_F_CONTINUATION
,
0x04
// rfc7540,l,1855,1857
0x04
,
// rfc7540,l,1855,1857
0
)
)
H2_FRAME
(
priority
,
PRIORITY
,
0x2
,
0x00
,
H2_FRAME
(
priority
,
PRIORITY
,
0x2
,
0x00
,
H2CE_PROTOCOL_ERROR
,
// rfc7540,l,1933,1936
H2CE_PROTOCOL_ERROR
,
// rfc7540,l,1933,1936
...
@@ -61,7 +64,8 @@
...
@@ -61,7 +64,8 @@
0
,
// rfc7540,l,938,940
0
,
// rfc7540,l,938,940
0
,
0
,
0
,
0
,
0
0
,
1
)
)
H2_FRAME
(
rst_stream
,
RST_STREAM
,
0x3
,
0x00
,
H2_FRAME
(
rst_stream
,
RST_STREAM
,
0x3
,
0x00
,
H2CE_PROTOCOL_ERROR
,
// rfc7540,l,1993,1996
H2CE_PROTOCOL_ERROR
,
// rfc7540,l,1993,1996
...
@@ -69,7 +73,8 @@
...
@@ -69,7 +73,8 @@
H2CE_PROTOCOL_ERROR
,
H2CE_PROTOCOL_ERROR
,
0
,
0
,
0
,
0
,
0
0
,
1
)
)
H2_FRAME
(
settings
,
SETTINGS
,
0x4
,
0x01
,
H2_FRAME
(
settings
,
SETTINGS
,
0x4
,
0x01
,
0
,
0
,
...
@@ -77,7 +82,8 @@
...
@@ -77,7 +82,8 @@
H2CE_PROTOCOL_ERROR
,
H2CE_PROTOCOL_ERROR
,
0
,
0
,
0
,
0
,
0
0
,
1
)
)
H2_FRAME
(
push_promise
,
PUSH_PROMISE
,
0x5
,
0x0c
,
H2_FRAME
(
push_promise
,
PUSH_PROMISE
,
0x5
,
0x0c
,
H2CE_PROTOCOL_ERROR
,
// rfc7540,l,2262,2263
H2CE_PROTOCOL_ERROR
,
// rfc7540,l,2262,2263
...
@@ -85,7 +91,8 @@
...
@@ -85,7 +91,8 @@
H2CE_PROTOCOL_ERROR
,
H2CE_PROTOCOL_ERROR
,
0
,
0
,
H2_F_CONTINUATION
,
H2_F_CONTINUATION
,
0x04
// rfc7540,l,2249,2251
0x04
,
// rfc7540,l,2249,2251
2
)
)
H2_FRAME
(
ping
,
PING
,
0x6
,
0x01
,
H2_FRAME
(
ping
,
PING
,
0x6
,
0x01
,
0
,
0
,
...
@@ -93,7 +100,8 @@
...
@@ -93,7 +100,8 @@
H2CE_PROTOCOL_ERROR
,
H2CE_PROTOCOL_ERROR
,
0
,
0
,
0
,
0
,
0
0
,
1
)
)
H2_FRAME
(
goaway
,
GOAWAY
,
0x7
,
0x00
,
H2_FRAME
(
goaway
,
GOAWAY
,
0x7
,
0x00
,
0
,
0
,
...
@@ -101,7 +109,8 @@
...
@@ -101,7 +109,8 @@
H2CE_PROTOCOL_ERROR
,
H2CE_PROTOCOL_ERROR
,
0
,
0
,
0
,
0
,
0
0
,
1
)
)
H2_FRAME
(
window_update
,
WINDOW_UPDATE
,
0x8
,
0x00
,
H2_FRAME
(
window_update
,
WINDOW_UPDATE
,
0x8
,
0x00
,
0
,
0
,
...
@@ -109,7 +118,8 @@
...
@@ -109,7 +118,8 @@
H2CE_PROTOCOL_ERROR
,
H2CE_PROTOCOL_ERROR
,
0
,
0
,
0
,
0
,
0
0
,
1
)
)
H2_FRAME
(
continuation
,
CONTINUATION
,
0x9
,
0x04
,
H2_FRAME
(
continuation
,
CONTINUATION
,
0x9
,
0x04
,
H2CE_PROTOCOL_ERROR
,
// rfc7540,l,2764,2767
H2CE_PROTOCOL_ERROR
,
// rfc7540,l,2764,2767
...
@@ -117,7 +127,8 @@
...
@@ -117,7 +127,8 @@
H2CE_PROTOCOL_ERROR
,
H2CE_PROTOCOL_ERROR
,
0
,
0
,
H2_F_CONTINUATION
,
H2_F_CONTINUATION
,
0x04
// rfc7540,l,2753,2754
0x04
,
// rfc7540,l,2753,2754
0
)
)
#undef H2_FRAME
#undef H2_FRAME
#endif
#endif
...
...
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