diff options
author | 2016-04-27 14:13:27 -0700 | |
---|---|---|
committer | 2016-04-27 14:13:27 -0700 | |
commit | ac2e88f9567c7e90f615738fb759537385dcc858 (patch) | |
tree | 05845f665c7aa0cff71096d68acac80a5e2ceec8 /src/core/lib/transport/metadata.h | |
parent | f16427da47a8b736ddfe6fbaf720da9b8a08d892 (diff) |
Initial attempt at adding support for max metadata size. Currently, the
code does not seem to be properly causing the RPC to fail when the max
size is exceeded.
Diffstat (limited to 'src/core/lib/transport/metadata.h')
-rw-r--r-- | src/core/lib/transport/metadata.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lib/transport/metadata.h b/src/core/lib/transport/metadata.h index 713d9e6782..277c257933 100644 --- a/src/core/lib/transport/metadata.h +++ b/src/core/lib/transport/metadata.h @@ -146,6 +146,8 @@ void grpc_mdelem_unref(grpc_mdelem *md); const char *grpc_mdstr_as_c_string(grpc_mdstr *s); #define GRPC_MDSTR_LENGTH(s) (GPR_SLICE_LENGTH(s->slice)) +#define GRPC_MDELEM_LENGTH(e) (GRPC_MDSTR_LENGTH(e->key) + \ + GRPC_MDSTR_LENGTH(e->value)) int grpc_mdstr_is_legal_header(grpc_mdstr *s); int grpc_mdstr_is_legal_nonbin_header(grpc_mdstr *s); |