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
803140a9
Commit
803140a9
authored
Mar 28, 2024
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http2: New H2_ERROR_MATCH() helper macro
parent
a90f5425
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
cache_http2.h
bin/varnishd/http2/cache_http2.h
+3
-0
cache_http2_send.c
bin/varnishd/http2/cache_http2_send.c
+1
-1
No files found.
bin/varnishd/http2/cache_http2.h
View file @
803140a9
...
...
@@ -50,6 +50,9 @@ struct h2_error_s {
typedef
const
struct
h2_error_s
*
h2_error
;
#define H2_ERROR_MATCH(err, target) \
((err) != NULL && (err)->val == (target)->val)
#define H2_CUSTOM_ERRORS
#define H2EC1(U,v,g,r,d) extern const struct h2_error_s H2CE_##U[1];
#define H2EC2(U,v,g,r,d) extern const struct h2_error_s H2SE_##U[1];
...
...
bin/varnishd/http2/cache_http2_send.c
View file @
803140a9
...
...
@@ -435,6 +435,6 @@ H2_Send(struct worker *wrk, struct h2_req *r2, h2_frame ftyp, uint8_t flags,
h2_send
(
wrk
,
r2
,
ftyp
,
flags
,
len
,
ptr
,
counter
);
h2e
=
h2_errcheck
(
r2
,
r2
->
h2sess
);
if
(
h2e
!=
NULL
&&
h2e
->
val
==
H2SE_CANCEL
->
val
)
if
(
H2_ERROR_MATCH
(
h2e
,
H2SE_CANCEL
)
)
H2_Send_RST
(
wrk
,
r2
->
h2sess
,
r2
,
r2
->
stream
,
h2e
);
}
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