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
99a3ac45
Commit
99a3ac45
authored
May 19, 2021
by
Martin Blix Grydeland
Committed by
Dridi Boukelmoune
Oct 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Panic H2 local and remote settings
parent
da78f627
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 @
99a3ac45
...
...
@@ -43,6 +43,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
)
{
...
...
@@ -63,6 +77,12 @@ h2_sess_panic(struct vsb *vsb, const struct sess *sp)
"open_streams = %d, highest_stream = %u,"
" goaway_last_stream = %u,
\n
"
,
h2
->
open_streams
,
h2
->
highest_stream
,
h2
->
goaway_last_stream
);
VSB_printf
(
vsb
,
"local_settings = {"
);
h2_panic_settings
(
vsb
,
&
h2
->
local_settings
);
VSB_printf
(
vsb
,
"},
\n
"
);
VSB_printf
(
vsb
,
"remote_settings = {"
);
h2_panic_settings
(
vsb
,
&
h2
->
remote_settings
);
VSB_printf
(
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