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
7456b167
Commit
7456b167
authored
Aug 20, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h2: Log the htc status name for easier debugging
parent
91abe0a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
cache_http2_proto.c
bin/varnishd/http2/cache_http2_proto.c
+6
-1
No files found.
bin/varnishd/http2/cache_http2_proto.c
View file @
7456b167
...
@@ -1115,6 +1115,7 @@ h2_rxframe(struct worker *wrk, struct h2_sess *h2)
...
@@ -1115,6 +1115,7 @@ h2_rxframe(struct worker *wrk, struct h2_sess *h2)
enum
htc_status_e
hs
;
enum
htc_status_e
hs
;
h2_frame
h2f
;
h2_frame
h2f
;
h2_error
h2e
;
h2_error
h2e
;
const
char
*
s
=
NULL
;
char
b
[
8
];
char
b
[
8
];
ASSERT_RXTHR
(
h2
);
ASSERT_RXTHR
(
h2
);
...
@@ -1134,8 +1135,12 @@ h2_rxframe(struct worker *wrk, struct h2_sess *h2)
...
@@ -1134,8 +1135,12 @@ h2_rxframe(struct worker *wrk, struct h2_sess *h2)
/* FALLTHROUGH */
/* FALLTHROUGH */
default:
default:
/* XXX: HTC_S_OVERFLOW / FRAME_SIZE_ERROR handling */
/* XXX: HTC_S_OVERFLOW / FRAME_SIZE_ERROR handling */
#define HTC_STATUS(e, n, d, l) \
if (hs == HTC_S_ ## e) \
s = #e;
#include "tbl/htc.h"
Lck_Lock
(
&
h2
->
sess
->
mtx
);
Lck_Lock
(
&
h2
->
sess
->
mtx
);
VSLb
(
h2
->
vsl
,
SLT_Debug
,
"H2: No frame (hs=%
d)"
,
h
s
);
VSLb
(
h2
->
vsl
,
SLT_Debug
,
"H2: No frame (hs=%
s)"
,
s
);
h2
->
error
=
H2CE_NO_ERROR
;
h2
->
error
=
H2CE_NO_ERROR
;
Lck_Unlock
(
&
h2
->
sess
->
mtx
);
Lck_Unlock
(
&
h2
->
sess
->
mtx
);
return
(
0
);
return
(
0
);
...
...
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