Skip to content

Commit d4b5767

Browse files
committed
http2: Unique names for errors
Connection and stream errors are not the same thing, so our error reporting should also use unambiguous names.
1 parent bd0076f commit d4b5767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/varnishd/http2/cache_http2_proto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848

4949
#define H2_CUSTOM_ERRORS
5050
#define H2EC1(U,v,g,r,d) \
51-
const struct h2_error_s H2CE_##U[1] = {{#U,d,v,0,1,g,r}};
51+
const struct h2_error_s H2CE_##U[1] = {{"H2CE_" #U,d,v,0,1,g,r}};
5252
#define H2EC2(U,v,g,r,d) \
53-
const struct h2_error_s H2SE_##U[1] = {{#U,d,v,1,0,g,r}};
53+
const struct h2_error_s H2SE_##U[1] = {{"H2SE_" #U,d,v,1,0,g,r}};
5454
#define H2EC3(U,v,g,r,d) H2EC1(U,v,g,r,d) H2EC2(U,v,g,r,d)
5555
#define H2_ERROR(NAME, val, sc, goaway, reason, desc) \
5656
H2EC##sc(NAME, val, goaway, reason, desc)

0 commit comments

Comments
 (0)