|
|
@ -81,9 +81,9 @@ static void verify(grpc_exec_ctx *exec_ctx, size_t window_available, int eof, |
|
|
|
e[i - 1].next = &e[i]; |
|
|
|
e[i - 1].next = &e[i]; |
|
|
|
e[i].prev = &e[i - 1]; |
|
|
|
e[i].prev = &e[i - 1]; |
|
|
|
} |
|
|
|
} |
|
|
|
e[i].md = |
|
|
|
e[i].md = grpc_mdelem_from_slices( |
|
|
|
grpc_mdelem_from_slices(exec_ctx, grpc_slice_from_copied_string(key), |
|
|
|
exec_ctx, grpc_slice_intern(grpc_slice_from_static_string(key)), |
|
|
|
grpc_slice_from_copied_string(value)); |
|
|
|
grpc_slice_intern(grpc_slice_from_static_string(value))); |
|
|
|
} |
|
|
|
} |
|
|
|
e[0].prev = NULL; |
|
|
|
e[0].prev = NULL; |
|
|
|
e[nheaders - 1].next = NULL; |
|
|
|
e[nheaders - 1].next = NULL; |
|
|
@ -91,6 +91,7 @@ static void verify(grpc_exec_ctx *exec_ctx, size_t window_available, int eof, |
|
|
|
|
|
|
|
|
|
|
|
b.list.head = &e[0]; |
|
|
|
b.list.head = &e[0]; |
|
|
|
b.list.tail = &e[nheaders - 1]; |
|
|
|
b.list.tail = &e[nheaders - 1]; |
|
|
|
|
|
|
|
b.list.count = nheaders; |
|
|
|
|
|
|
|
|
|
|
|
if (cap_to_delete == num_to_delete) { |
|
|
|
if (cap_to_delete == num_to_delete) { |
|
|
|
cap_to_delete = GPR_MAX(2 * cap_to_delete, 1000); |
|
|
|
cap_to_delete = GPR_MAX(2 * cap_to_delete, 1000); |
|
|
@ -195,9 +196,9 @@ static void verify_table_size_change_match_elem_size(grpc_exec_ctx *exec_ctx, |
|
|
|
const char *key, |
|
|
|
const char *key, |
|
|
|
const char *value) { |
|
|
|
const char *value) { |
|
|
|
grpc_slice_buffer output; |
|
|
|
grpc_slice_buffer output; |
|
|
|
grpc_mdelem elem = |
|
|
|
grpc_mdelem elem = grpc_mdelem_from_slices( |
|
|
|
grpc_mdelem_from_slices(exec_ctx, grpc_slice_from_copied_string(key), |
|
|
|
exec_ctx, grpc_slice_intern(grpc_slice_from_static_string(key)), |
|
|
|
grpc_slice_from_copied_string(value)); |
|
|
|
grpc_slice_intern(grpc_slice_from_static_string(value))); |
|
|
|
size_t elem_size = grpc_mdelem_get_size_in_hpack_table(elem); |
|
|
|
size_t elem_size = grpc_mdelem_get_size_in_hpack_table(elem); |
|
|
|
size_t initial_table_size = g_compressor.table_size; |
|
|
|
size_t initial_table_size = g_compressor.table_size; |
|
|
|
grpc_linked_mdelem *e = gpr_malloc(sizeof(*e)); |
|
|
|
grpc_linked_mdelem *e = gpr_malloc(sizeof(*e)); |
|
|
@ -208,6 +209,7 @@ static void verify_table_size_change_match_elem_size(grpc_exec_ctx *exec_ctx, |
|
|
|
e[0].next = NULL; |
|
|
|
e[0].next = NULL; |
|
|
|
b.list.head = &e[0]; |
|
|
|
b.list.head = &e[0]; |
|
|
|
b.list.tail = &e[0]; |
|
|
|
b.list.tail = &e[0]; |
|
|
|
|
|
|
|
b.list.count = 1; |
|
|
|
grpc_slice_buffer_init(&output); |
|
|
|
grpc_slice_buffer_init(&output); |
|
|
|
|
|
|
|
|
|
|
|
grpc_transport_one_way_stats stats; |
|
|
|
grpc_transport_one_way_stats stats; |
|
|
|