|
|
|
@ -114,7 +114,9 @@ static void test_cancel_after_round_trip(grpc_end2end_test_config config, |
|
|
|
|
grpc_slice_from_copied_string("hello you"); |
|
|
|
|
grpc_byte_buffer *request_payload = |
|
|
|
|
grpc_raw_byte_buffer_create(&request_payload_slice, 1); |
|
|
|
|
grpc_byte_buffer *response_payload = |
|
|
|
|
grpc_byte_buffer *response_payload1 = |
|
|
|
|
grpc_raw_byte_buffer_create(&response_payload_slice, 1); |
|
|
|
|
grpc_byte_buffer *response_payload2 = |
|
|
|
|
grpc_raw_byte_buffer_create(&response_payload_slice, 1); |
|
|
|
|
int was_cancelled = 2; |
|
|
|
|
|
|
|
|
@ -199,7 +201,7 @@ static void test_cancel_after_round_trip(grpc_end2end_test_config config, |
|
|
|
|
op->reserved = NULL; |
|
|
|
|
op++; |
|
|
|
|
op->op = GRPC_OP_SEND_MESSAGE; |
|
|
|
|
op->data.send_message.send_message = response_payload; |
|
|
|
|
op->data.send_message.send_message = response_payload1; |
|
|
|
|
op->flags = 0; |
|
|
|
|
op->reserved = NULL; |
|
|
|
|
op++; |
|
|
|
@ -242,7 +244,7 @@ static void test_cancel_after_round_trip(grpc_end2end_test_config config, |
|
|
|
|
op->reserved = NULL; |
|
|
|
|
op++; |
|
|
|
|
op->op = GRPC_OP_SEND_MESSAGE; |
|
|
|
|
op->data.send_message.send_message = response_payload; |
|
|
|
|
op->data.send_message.send_message = response_payload2; |
|
|
|
|
op->flags = 0; |
|
|
|
|
op->reserved = NULL; |
|
|
|
|
op++; |
|
|
|
@ -262,7 +264,8 @@ static void test_cancel_after_round_trip(grpc_end2end_test_config config, |
|
|
|
|
grpc_call_details_destroy(&call_details); |
|
|
|
|
|
|
|
|
|
grpc_byte_buffer_destroy(request_payload); |
|
|
|
|
grpc_byte_buffer_destroy(response_payload); |
|
|
|
|
grpc_byte_buffer_destroy(response_payload1); |
|
|
|
|
grpc_byte_buffer_destroy(response_payload2); |
|
|
|
|
grpc_byte_buffer_destroy(request_payload_recv); |
|
|
|
|
grpc_byte_buffer_destroy(response_payload_recv); |
|
|
|
|
grpc_slice_unref(details); |
|
|
|
|