diff options
author | 2016-05-10 08:28:28 -0700 | |
---|---|---|
committer | 2016-05-10 08:28:28 -0700 | |
commit | cfbe02075ac360e03042c4fe7d87369cee036fc5 (patch) | |
tree | be833ff2fff38f60e1774a3e29bcf6a4f3821323 /include/grpc | |
parent | 5e743b2accb8003a44e9ab1fdccc549ba7f9a859 (diff) | |
parent | 067cce56d4158031ea40f2f91a2e3839ebe2bbec (diff) |
Merge pull request #6320 from markdroth/limit_metadata_size
Add support for max metadata size.
Diffstat (limited to 'include/grpc')
-rw-r--r-- | include/grpc/impl/codegen/grpc_types.h | 2 | ||||
-rw-r--r-- | include/grpc/impl/codegen/slice_buffer.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/grpc/impl/codegen/grpc_types.h b/include/grpc/impl/codegen/grpc_types.h index 7b20cc14d4..af3d0c2191 100644 --- a/include/grpc/impl/codegen/grpc_types.h +++ b/include/grpc/impl/codegen/grpc_types.h @@ -152,6 +152,8 @@ typedef struct { channel). If this parameter is specified and the underlying is not an SSL channel, it will just be ignored. */ #define GRPC_SSL_TARGET_NAME_OVERRIDE_ARG "grpc.ssl_target_name_override" +/* Maximum metadata size */ +#define GRPC_ARG_MAX_METADATA_SIZE "grpc.max_metadata_size" /** Result of a grpc call. If the caller satisfies the prerequisites of a particular operation, the grpc_call_error returned will be GRPC_CALL_OK. diff --git a/include/grpc/impl/codegen/slice_buffer.h b/include/grpc/impl/codegen/slice_buffer.h index 8ca51baa47..7858021600 100644 --- a/include/grpc/impl/codegen/slice_buffer.h +++ b/include/grpc/impl/codegen/slice_buffer.h @@ -42,9 +42,8 @@ extern "C" { #define GRPC_SLICE_BUFFER_INLINE_ELEMENTS 8 -/* Represents an expandable array of slices, to be interpreted as a single item - TODO(ctiller): inline some small number of elements into the struct, to - avoid per-call allocations */ +/* Represents an expandable array of slices, to be interpreted as a + single item. */ typedef struct { /* slices in the array */ gpr_slice *slices; |