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
8a18531a
Commit
8a18531a
authored
Jun 22, 2021
by
Martin Blix Grydeland
Committed by
Dridi Boukelmoune
Aug 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Panic H2 local and remote settings
parent
529a35dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
cache_http2_panic.c
bin/varnishd/http2/cache_http2_panic.c
+20
-0
No files found.
bin/varnishd/http2/cache_http2_panic.c
View file @
8a18531a
...
...
@@ -45,6 +45,20 @@ h2_panic_error(const struct h2_error_s *e)
return
(
e
->
name
);
}
static
void
h2_panic_settings
(
struct
vsb
*
vsb
,
const
struct
h2_settings
*
s
)
{
int
cont
=
0
;
#define H2_SETTING(U,l,...) \
if (cont) \
VSB_printf(vsb, ", "); \
cont = 1; \
VSB_printf(vsb, "0x%x", s->l);
#include "tbl/h2_settings.h"
#undef H2_SETTING
}
void
h2_sess_panic
(
struct
vsb
*
vsb
,
const
struct
sess
*
sp
)
{
...
...
@@ -64,6 +78,12 @@ h2_sess_panic(struct vsb *vsb, const struct sess *sp)
"open_streams = %u, highest_stream = %u,"
" goaway_last_stream = %u,
\n
"
,
h2
->
open_streams
,
h2
->
highest_stream
,
h2
->
goaway_last_stream
);
VSB_cat
(
vsb
,
"local_settings = {"
);
h2_panic_settings
(
vsb
,
&
h2
->
local_settings
);
VSB_cat
(
vsb
,
"},
\n
"
);
VSB_cat
(
vsb
,
"remote_settings = {"
);
h2_panic_settings
(
vsb
,
&
h2
->
remote_settings
);
VSB_cat
(
vsb
,
"},
\n
"
);
VSB_printf
(
vsb
,
"{rxf_len, rxf_type, rxf_flags, rxf_stream} ="
" {%u, %u, 0x%x, %u},
\n
"
,
...
...
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