resource_quota_server.cc
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2016 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #include <stdio.h>
20 #include <string.h>
21 
22 #include <grpc/byte_buffer.h>
23 #include <grpc/support/alloc.h>
24 #include <grpc/support/log.h>
25 #include <grpc/support/time.h>
26 
29 
30 static void* tag(intptr_t t) { return reinterpret_cast<void*>(t); }
31 
33  const char* test_name,
34  grpc_channel_args* client_args,
35  grpc_channel_args* server_args) {
37  gpr_log(GPR_INFO, "Running test: %s/%s", test_name, config.name);
38  f = config.create_fixture(client_args, server_args);
39  config.init_server(&f, server_args);
40  config.init_client(&f, client_args);
41  return f;
42 }
43 
46 }
47 
49  return n_seconds_from_now(5);
50 }
51 
53  grpc_event ev;
54  do {
56  } while (ev.type != GRPC_QUEUE_SHUTDOWN);
57 }
58 
60  if (!f->server) return;
61  grpc_server_shutdown_and_notify(f->server, f->cq, tag(1000));
62  grpc_event ev;
63  do {
65  nullptr);
66  } while (ev.type != GRPC_OP_COMPLETE || ev.tag != tag(1000));
67  grpc_server_destroy(f->server);
68  f->server = nullptr;
69 }
70 
72  if (!f->client) return;
73  grpc_channel_destroy(f->client);
74  f->client = nullptr;
75 }
76 
80 
82  drain_cq(f->cq);
84 }
85 
86 /* Creates and returns a grpc_slice containing random alphanumeric characters.
87  */
89  size_t i;
90  static const char chars[] = "abcdefghijklmnopqrstuvwxyz1234567890";
91  char* output;
92  const size_t output_size = 1024 * 1024;
93  output = static_cast<char*>(gpr_malloc(output_size));
94  for (i = 0; i < output_size - 1; ++i) {
95  output[i] = chars[rand() % static_cast<int>(sizeof(chars) - 1)];
96  }
97  output[output_size - 1] = '\0';
100  return out;
101 }
102 
104  if (config.feature_mask &
106  return;
107  }
109  grpc_resource_quota_create("test_server");
110  grpc_resource_quota_resize(resource_quota, 5 * 1024 * 1024);
111 
112 #define NUM_CALLS 100
113 #define CLIENT_BASE_TAG 0x1000
114 #define SERVER_START_BASE_TAG 0x2000
115 #define SERVER_RECV_BASE_TAG 0x3000
116 #define SERVER_END_BASE_TAG 0x4000
117 
118  grpc_arg arg;
119  arg.key = const_cast<char*>(GRPC_ARG_RESOURCE_QUOTA);
121  arg.value.pointer.p = resource_quota;
122  arg.value.pointer.vtable = grpc_resource_quota_arg_vtable();
123  grpc_channel_args args = {1, &arg};
124 
126  begin_test(config, "resource_quota_server", nullptr, &args);
127 
128  /* Create large request and response bodies. These are big enough to require
129  * multiple round trips to deliver to the peer, and their exact contents of
130  * will be verified on completion. */
131  grpc_slice request_payload_slice = generate_random_slice();
132 
133  grpc_call** client_calls =
134  static_cast<grpc_call**>(malloc(sizeof(grpc_call*) * NUM_CALLS));
135  grpc_call** server_calls =
136  static_cast<grpc_call**>(malloc(sizeof(grpc_call*) * NUM_CALLS));
138  static_cast<grpc_metadata_array*>(
139  malloc(sizeof(grpc_metadata_array) * NUM_CALLS));
141  static_cast<grpc_metadata_array*>(
142  malloc(sizeof(grpc_metadata_array) * NUM_CALLS));
144  static_cast<grpc_metadata_array*>(
145  malloc(sizeof(grpc_metadata_array) * NUM_CALLS));
147  malloc(sizeof(grpc_call_details) * NUM_CALLS));
148  grpc_status_code* status = static_cast<grpc_status_code*>(
149  malloc(sizeof(grpc_status_code) * NUM_CALLS));
151  static_cast<grpc_slice*>(malloc(sizeof(grpc_slice) * NUM_CALLS));
152  grpc_byte_buffer** request_payload = static_cast<grpc_byte_buffer**>(
153  malloc(sizeof(grpc_byte_buffer*) * NUM_CALLS));
154  grpc_byte_buffer** request_payload_recv = static_cast<grpc_byte_buffer**>(
155  malloc(sizeof(grpc_byte_buffer*) * NUM_CALLS));
156  int* was_cancelled = static_cast<int*>(malloc(sizeof(int) * NUM_CALLS));
158  int pending_client_calls = 0;
159  int pending_server_start_calls = 0;
160  int pending_server_recv_calls = 0;
161  int pending_server_end_calls = 0;
162  int cancelled_calls_on_client = 0;
163  int cancelled_calls_on_server = 0;
164  int deadline_exceeded = 0;
165  int unavailable = 0;
166 
167  grpc_op ops[6];
168  grpc_op* op;
169 
170  for (int i = 0; i < NUM_CALLS; i++) {
175  request_payload[i] = grpc_raw_byte_buffer_create(&request_payload_slice, 1);
176  request_payload_recv[i] = nullptr;
177  was_cancelled[i] = 0;
178  }
179 
180  for (int i = 0; i < NUM_CALLS; i++) {
182  f.server, &server_calls[i], &call_details[i], &request_metadata_recv[i],
183  f.cq, f.cq, tag(SERVER_START_BASE_TAG + i));
185 
186  pending_server_start_calls++;
187  }
188 
189  for (int i = 0; i < NUM_CALLS; i++) {
190  client_calls[i] =
192  f.cq, grpc_slice_from_static_string("/foo"),
193  nullptr, n_seconds_from_now(60), nullptr);
194 
195  memset(ops, 0, sizeof(ops));
196  op = ops;
200  op->reserved = nullptr;
201  op++;
203  op->data.send_message.send_message = request_payload[i];
204  op->flags = 0;
205  op->reserved = nullptr;
206  op++;
208  op->flags = 0;
209  op->reserved = nullptr;
210  op++;
214  op->flags = 0;
215  op->reserved = nullptr;
216  op++;
222  op->flags = 0;
223  op->reserved = nullptr;
224  op++;
225  error = grpc_call_start_batch(client_calls[i], ops,
226  static_cast<size_t>(op - ops),
227  tag(CLIENT_BASE_TAG + i), nullptr);
229 
230  pending_client_calls++;
231  }
232 
233  while (pending_client_calls + pending_server_recv_calls +
234  pending_server_end_calls >
235  0) {
236  grpc_event ev =
239 
240  int ev_tag = static_cast<int>(reinterpret_cast<intptr_t>(ev.tag));
241  if (ev_tag < CLIENT_BASE_TAG) {
242  abort(); /* illegal tag */
243  } else if (ev_tag < SERVER_START_BASE_TAG) {
244  /* client call finished */
245  int call_id = ev_tag - CLIENT_BASE_TAG;
246  GPR_ASSERT(call_id >= 0);
247  GPR_ASSERT(call_id < NUM_CALLS);
248  switch (status[call_id]) {
250  cancelled_calls_on_client++;
251  break;
253  deadline_exceeded++;
254  break;
256  unavailable++;
257  break;
258  case GRPC_STATUS_OK:
259  break;
260  default:
261  gpr_log(GPR_ERROR, "Unexpected status code: %d", status[call_id]);
262  abort();
263  }
264  GPR_ASSERT(pending_client_calls > 0);
265 
268  grpc_call_unref(client_calls[call_id]);
269  grpc_slice_unref(details[call_id]);
270  grpc_byte_buffer_destroy(request_payload[call_id]);
271 
272  pending_client_calls--;
273  } else if (ev_tag < SERVER_RECV_BASE_TAG) {
274  /* new incoming call to the server */
275  int call_id = ev_tag - SERVER_START_BASE_TAG;
276  GPR_ASSERT(call_id >= 0);
277  GPR_ASSERT(call_id < NUM_CALLS);
278 
279  memset(ops, 0, sizeof(ops));
280  op = ops;
283  op->flags = 0;
284  op->reserved = nullptr;
285  op++;
287  op->data.recv_message.recv_message = &request_payload_recv[call_id];
288  op->flags = 0;
289  op->reserved = nullptr;
290  op++;
292  server_calls[call_id], ops, static_cast<size_t>(op - ops),
293  tag(SERVER_RECV_BASE_TAG + call_id), nullptr);
295 
296  GPR_ASSERT(pending_server_start_calls > 0);
297  pending_server_start_calls--;
298  pending_server_recv_calls++;
299 
302  } else if (ev_tag < SERVER_END_BASE_TAG) {
303  /* finished read on the server */
304  int call_id = ev_tag - SERVER_RECV_BASE_TAG;
305  GPR_ASSERT(call_id >= 0);
306  GPR_ASSERT(call_id < NUM_CALLS);
307 
308  if (ev.success) {
309  if (request_payload_recv[call_id] != nullptr) {
310  grpc_byte_buffer_destroy(request_payload_recv[call_id]);
311  request_payload_recv[call_id] = nullptr;
312  }
313  } else {
314  GPR_ASSERT(request_payload_recv[call_id] == nullptr);
315  }
316 
317  memset(ops, 0, sizeof(ops));
318  op = ops;
321  op->flags = 0;
322  op->reserved = nullptr;
323  op++;
327  grpc_slice status_details = grpc_slice_from_static_string("xyz");
328  op->data.send_status_from_server.status_details = &status_details;
329  op->flags = 0;
330  op->reserved = nullptr;
331  op++;
333  server_calls[call_id], ops, static_cast<size_t>(op - ops),
334  tag(SERVER_END_BASE_TAG + call_id), nullptr);
336 
337  GPR_ASSERT(pending_server_recv_calls > 0);
338  pending_server_recv_calls--;
339  pending_server_end_calls++;
340  } else {
341  int call_id = ev_tag - SERVER_END_BASE_TAG;
342  GPR_ASSERT(call_id >= 0);
343  GPR_ASSERT(call_id < NUM_CALLS);
344 
345  if (was_cancelled[call_id]) {
346  cancelled_calls_on_server++;
347  }
348  GPR_ASSERT(pending_server_end_calls > 0);
349  pending_server_end_calls--;
350 
351  grpc_call_unref(server_calls[call_id]);
352  }
353  }
354 
356  "Done. %d total calls: %d cancelled at server, %d cancelled at "
357  "client, %d timed out, %d unavailable.",
358  NUM_CALLS, cancelled_calls_on_server, cancelled_calls_on_client,
359  deadline_exceeded, unavailable);
360 
361  grpc_slice_unref(request_payload_slice);
363 
364  end_test(&f);
365  config.tear_down_data(&f);
366 
367  free(client_calls);
368  free(server_calls);
369  free(initial_metadata_recv);
371  free(request_metadata_recv);
372  free(call_details);
373  free(status);
374  free(details);
375  free(request_payload);
376  free(request_payload_recv);
377  free(was_cancelled);
378 }
379 
NUM_CALLS
#define NUM_CALLS
grpc_arg
Definition: grpc_types.h:103
grpc_slice_unref
GPRAPI void grpc_slice_unref(grpc_slice s)
Definition: slice_api.cc:32
GPR_INFO
#define GPR_INFO
Definition: include/grpc/impl/codegen/log.h:56
grpc_op::grpc_op_data::grpc_op_send_message::send_message
struct grpc_byte_buffer * send_message
Definition: grpc_types.h:668
grpc_op::flags
uint32_t flags
Definition: grpc_types.h:644
grpc_call_error
grpc_call_error
Definition: grpc_types.h:464
shutdown_client
static void shutdown_client(grpc_end2end_test_fixture *f)
Definition: resource_quota_server.cc:71
gen_build_yaml.out
dictionary out
Definition: src/benchmark/gen_build_yaml.py:24
grpc_call_details_destroy
GRPCAPI void grpc_call_details_destroy(grpc_call_details *details)
Definition: call_details.cc:36
grpc_call_details_init
GRPCAPI void grpc_call_details_init(grpc_call_details *details)
Definition: call_details.cc:30
grpc_op::grpc_op_data::grpc_op_recv_status_on_client::trailing_metadata
grpc_metadata_array * trailing_metadata
Definition: grpc_types.h:701
grpc_timeout_seconds_to_deadline
gpr_timespec grpc_timeout_seconds_to_deadline(int64_t time_s)
Definition: test/core/util/test_config.cc:81
log.h
grpc_op::grpc_op_data::grpc_op_recv_status_on_client::status
grpc_status_code * status
Definition: grpc_types.h:702
GRPC_STATUS_UNAVAILABLE
@ GRPC_STATUS_UNAVAILABLE
Definition: include/grpc/impl/codegen/status.h:143
grpc_raw_byte_buffer_create
GRPCAPI grpc_byte_buffer * grpc_raw_byte_buffer_create(grpc_slice *slices, size_t nslices)
Definition: byte_buffer.cc:34
memset
return memset(p, 0, total)
grpc_resource_quota
struct grpc_resource_quota grpc_resource_quota
Definition: grpc_types.h:729
grpc_slice_from_copied_string
GPRAPI grpc_slice grpc_slice_from_copied_string(const char *source)
Definition: slice/slice.cc:177
grpc_op::grpc_op_data::send_initial_metadata
struct grpc_op::grpc_op_data::grpc_op_send_initial_metadata send_initial_metadata
generate_random_slice
static grpc_slice generate_random_slice()
Definition: resource_quota_server.cc:88
GRPC_ARG_RESOURCE_QUOTA
#define GRPC_ARG_RESOURCE_QUOTA
Definition: grpc_types.h:299
grpc_metadata_array
Definition: grpc_types.h:579
grpc_call_details
Definition: grpc_types.h:585
shutdown_server
static void shutdown_server(grpc_end2end_test_fixture *f)
Definition: resource_quota_server.cc:59
grpc_op::reserved
void * reserved
Definition: grpc_types.h:646
string.h
resource_quota_server_pre_init
void resource_quota_server_pre_init(void)
Definition: resource_quota_server.cc:380
SERVER_END_BASE_TAG
#define SERVER_END_BASE_TAG
gpr_free
GPRAPI void gpr_free(void *ptr)
Definition: alloc.cc:51
resource_quota_server
void resource_quota_server(grpc_end2end_test_config config)
Definition: resource_quota_server.cc:103
error
grpc_error_handle error
Definition: retry_filter.cc:499
grpc_status_code
grpc_status_code
Definition: include/grpc/impl/codegen/status.h:28
GRPC_QUEUE_SHUTDOWN
@ GRPC_QUEUE_SHUTDOWN
Definition: grpc_types.h:554
GRPC_OP_COMPLETE
@ GRPC_OP_COMPLETE
Definition: grpc_types.h:558
arg::value
void * value
Definition: cmdline.cc:44
gpr_malloc
GPRAPI void * gpr_malloc(size_t size)
Definition: alloc.cc:29
GRPC_CALL_OK
@ GRPC_CALL_OK
Definition: grpc_types.h:466
status
absl::Status status
Definition: rls.cc:251
grpc_resource_quota_create
GRPCAPI grpc_resource_quota * grpc_resource_quota_create(const char *trace_name)
Definition: api.cc:66
GRPC_STATUS_DEADLINE_EXCEEDED
@ GRPC_STATUS_DEADLINE_EXCEEDED
Definition: include/grpc/impl/codegen/status.h:53
time.h
grpc_end2end_test_config
Definition: end2end_tests.h:53
CLIENT_BASE_TAG
#define CLIENT_BASE_TAG
GRPC_STATUS_RESOURCE_EXHAUSTED
@ GRPC_STATUS_RESOURCE_EXHAUSTED
Definition: include/grpc/impl/codegen/status.h:76
grpc_channel_args
Definition: grpc_types.h:132
resource_quota
ResourceQuotaRefPtr resource_quota
Definition: filter_fuzzer.cc:145
grpc_op::grpc_op_data::recv_message
struct grpc_op::grpc_op_data::grpc_op_recv_message recv_message
grpc_op::data
union grpc_op::grpc_op_data data
grpc_end2end_test_fixture
Definition: end2end_tests.h:46
grpc_metadata_array_destroy
GRPCAPI void grpc_metadata_array_destroy(grpc_metadata_array *array)
Definition: metadata_array.cc:35
grpc_op::grpc_op_data::grpc_op_recv_message::recv_message
struct grpc_byte_buffer ** recv_message
Definition: grpc_types.h:693
grpc_server_request_call
GRPCAPI grpc_call_error grpc_server_request_call(grpc_server *server, grpc_call **call, grpc_call_details *details, grpc_metadata_array *request_metadata, grpc_completion_queue *cq_bound_to_call, grpc_completion_queue *cq_for_notification, void *tag_new)
Definition: src/core/lib/surface/server.cc:1526
trailing_metadata_recv
static grpc_metadata_array trailing_metadata_recv
Definition: test/core/fling/client.cc:43
arg::type
argtype type
Definition: cmdline.cc:43
autogen_x86imm.f
f
Definition: autogen_x86imm.py:9
asyncio_get_stats.args
args
Definition: asyncio_get_stats.py:40
GRPC_INITIAL_METADATA_WAIT_FOR_READY
#define GRPC_INITIAL_METADATA_WAIT_FOR_READY
Definition: grpc_types.h:523
GRPC_STATUS_OK
@ GRPC_STATUS_OK
Definition: include/grpc/impl/codegen/status.h:30
GRPC_OP_RECV_INITIAL_METADATA
@ GRPC_OP_RECV_INITIAL_METADATA
Definition: grpc_types.h:617
GPR_ASSERT
#define GPR_ASSERT(x)
Definition: include/grpc/impl/codegen/log.h:94
GRPC_OP_SEND_STATUS_FROM_SERVER
@ GRPC_OP_SEND_STATUS_FROM_SERVER
Definition: grpc_types.h:612
gmock_output_test.output
output
Definition: bloaty/third_party/googletest/googlemock/test/gmock_output_test.py:175
grpc_resource_quota_arg_vtable
const GRPCAPI grpc_arg_pointer_vtable * grpc_resource_quota_arg_vtable(void)
Definition: api.cc:62
end_test
static void end_test(grpc_end2end_test_fixture *f)
Definition: resource_quota_server.cc:77
grpc_call_unref
GRPCAPI void grpc_call_unref(grpc_call *call)
Definition: call.cc:1770
grpc_op::grpc_op_data::grpc_op_send_status_from_server::status
grpc_status_code status
Definition: grpc_types.h:673
gpr_log
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
grpc_event
Definition: grpc_types.h:564
grpc_completion_queue
Definition: completion_queue.cc:347
grpc_call
struct grpc_call grpc_call
Definition: grpc_types.h:70
grpc_byte_buffer
Definition: grpc_types.h:43
grpc_op
Definition: grpc_types.h:640
GRPC_OP_SEND_MESSAGE
@ GRPC_OP_SEND_MESSAGE
Definition: grpc_types.h:602
arg
Definition: cmdline.cc:40
grpc_slice_from_static_string
GPRAPI grpc_slice grpc_slice_from_static_string(const char *source)
Definition: slice/slice.cc:89
was_cancelled
static int was_cancelled
Definition: test/core/fling/server.cc:58
grpc_slice
Definition: include/grpc/impl/codegen/slice.h:65
n_seconds_from_now
static gpr_timespec n_seconds_from_now(int n)
Definition: resource_quota_server.cc:44
intptr_t
_W64 signed int intptr_t
Definition: stdint-msvc2008.h:118
request_metadata_recv
static grpc_metadata_array request_metadata_recv
Definition: test/core/fling/server.cc:48
grpc_server_destroy
GRPCAPI void grpc_server_destroy(grpc_server *server)
Definition: src/core/lib/surface/server.cc:1519
GPR_ERROR
#define GPR_ERROR
Definition: include/grpc/impl/codegen/log.h:57
end2end_tests.h
n
int n
Definition: abseil-cpp/absl/container/btree_test.cc:1080
grpc_op::op
grpc_op_type op
Definition: grpc_types.h:642
grpc_op::grpc_op_data::grpc_op_send_initial_metadata::count
size_t count
Definition: grpc_types.h:653
grpc_op::grpc_op_data::grpc_op_recv_status_on_client::status_details
grpc_slice * status_details
Definition: grpc_types.h:703
details
static grpc_slice details
Definition: test/core/fling/client.cc:46
grpc_channel_create_call
GRPCAPI grpc_call * grpc_channel_create_call(grpc_channel *channel, grpc_call *parent_call, uint32_t propagation_mask, grpc_completion_queue *completion_queue, grpc_slice method, const grpc_slice *host, gpr_timespec deadline, void *reserved)
Definition: channel.cc:311
grpc_op::grpc_op_data::recv_close_on_server
struct grpc_op::grpc_op_data::grpc_op_recv_close_on_server recv_close_on_server
GRPC_OP_RECV_MESSAGE
@ GRPC_OP_RECV_MESSAGE
Definition: grpc_types.h:621
SERVER_RECV_BASE_TAG
#define SERVER_RECV_BASE_TAG
GRPC_PROPAGATE_DEFAULTS
#define GRPC_PROPAGATE_DEFAULTS
Definition: propagation_bits.h:45
grpc_op::grpc_op_data::send_status_from_server
struct grpc_op::grpc_op_data::grpc_op_send_status_from_server send_status_from_server
grpc_resource_quota_resize
GRPCAPI void grpc_resource_quota_resize(grpc_resource_quota *resource_quota, size_t new_size)
Definition: api.cc:83
drain_cq
static void drain_cq(grpc_completion_queue *cq)
Definition: resource_quota_server.cc:52
cq_verifier.h
grpc_completion_queue_destroy
GRPCAPI void grpc_completion_queue_destroy(grpc_completion_queue *cq)
Definition: completion_queue.cc:1424
GRPC_OP_SEND_INITIAL_METADATA
@ GRPC_OP_SEND_INITIAL_METADATA
Definition: grpc_types.h:598
grpc_op::grpc_op_data::send_message
struct grpc_op::grpc_op_data::grpc_op_send_message send_message
grpc_resource_quota_unref
GRPCAPI void grpc_resource_quota_unref(grpc_resource_quota *resource_quota)
Definition: api.cc:79
alloc.h
grpc_op::grpc_op_data::recv_status_on_client
struct grpc_op::grpc_op_data::grpc_op_recv_status_on_client recv_status_on_client
grpc_op::grpc_op_data::grpc_op_send_status_from_server::trailing_metadata_count
size_t trailing_metadata_count
Definition: grpc_types.h:671
grpc_server_shutdown_and_notify
GRPCAPI void grpc_server_shutdown_and_notify(grpc_server *server, grpc_completion_queue *cq, void *tag)
Definition: src/core/lib/surface/server.cc:1503
grpc_byte_buffer_destroy
GRPCAPI void grpc_byte_buffer_destroy(grpc_byte_buffer *bb)
Definition: byte_buffer.cc:81
grpc_completion_queue_next
GRPCAPI grpc_event grpc_completion_queue_next(grpc_completion_queue *cq, gpr_timespec deadline, void *reserved)
Definition: completion_queue.cc:1133
grpc_completion_queue_shutdown
GRPCAPI void grpc_completion_queue_shutdown(grpc_completion_queue *cq)
Definition: completion_queue.cc:1416
arg
struct arg arg
grpc_channel_destroy
GRPCAPI void grpc_channel_destroy(grpc_channel *channel)
Definition: channel.cc:437
begin_test
static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, grpc_channel_args *client_args, grpc_channel_args *server_args)
Definition: resource_quota_server.cc:32
config_s
Definition: bloaty/third_party/zlib/deflate.c:120
GRPC_OP_RECV_CLOSE_ON_SERVER
@ GRPC_OP_RECV_CLOSE_ON_SERVER
Definition: grpc_types.h:633
grpc_op::grpc_op_data::recv_initial_metadata
struct grpc_op::grpc_op_data::grpc_op_recv_initial_metadata recv_initial_metadata
GRPC_ARG_POINTER
@ GRPC_ARG_POINTER
Definition: grpc_types.h:82
grpc_op::grpc_op_data::grpc_op_send_status_from_server::status_details
grpc_slice * status_details
Definition: grpc_types.h:677
gpr_timespec
Definition: gpr_types.h:50
grpc_event::type
grpc_completion_type type
Definition: grpc_types.h:566
GRPC_OP_RECV_STATUS_ON_CLIENT
@ GRPC_OP_RECV_STATUS_ON_CLIENT
Definition: grpc_types.h:627
grpc_op::grpc_op_data::grpc_op_recv_initial_metadata::recv_initial_metadata
grpc_metadata_array * recv_initial_metadata
Definition: grpc_types.h:685
SERVER_START_BASE_TAG
#define SERVER_START_BASE_TAG
op
static grpc_op * op
Definition: test/core/fling/client.cc:47
grpc_event::success
int success
Definition: grpc_types.h:572
ops
static grpc_op ops[6]
Definition: test/core/fling/client.cc:39
initial_metadata_recv
static grpc_metadata_array initial_metadata_recv
Definition: test/core/fling/client.cc:42
grpc_call_start_batch
GRPCAPI grpc_call_error grpc_call_start_batch(grpc_call *call, const grpc_op *ops, size_t nops, void *tag, void *reserved)
Definition: call.cc:1831
five_seconds_from_now
static gpr_timespec five_seconds_from_now(void)
Definition: resource_quota_server.cc:48
grpc_event::tag
void * tag
Definition: grpc_types.h:576
grpc_op::grpc_op_data::grpc_op_recv_close_on_server::cancelled
int * cancelled
Definition: grpc_types.h:714
cq
static grpc_completion_queue * cq
Definition: test/core/fling/client.cc:37
GRPC_OP_SEND_CLOSE_FROM_CLIENT
@ GRPC_OP_SEND_CLOSE_FROM_CLIENT
Definition: grpc_types.h:607
i
uint64_t i
Definition: abseil-cpp/absl/container/btree_benchmark.cc:230
call_details
static grpc_call_details call_details
Definition: test/core/fling/server.cc:47
grpc_metadata_array_init
GRPCAPI void grpc_metadata_array_init(grpc_metadata_array *array)
Definition: metadata_array.cc:30
tag
static void * tag(intptr_t t)
Definition: resource_quota_server.cc:30
FEATURE_MASK_DOES_NOT_SUPPORT_RESOURCE_QUOTA_SERVER
#define FEATURE_MASK_DOES_NOT_SUPPORT_RESOURCE_QUOTA_SERVER
Definition: end2end_tests.h:39


grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:05