fix compile error

pull/13554/head
Dan Zhang 7 years ago
parent 0f7bc57e11
commit 64d588fc8e
  1. 2
      src/core/lib/iomgr/udp_server.cc
  2. 2
      test/core/iomgr/udp_server_test.cc

@ -438,7 +438,7 @@ static void on_write(grpc_exec_ctx* exec_ctx, void* arg, grpc_error* error) {
return;
}
// Schedule actual write in another thread.
/* Schedule actual write in another thread. */
GRPC_CLOSURE_INIT(&sp->do_write_closure, do_write, arg,
grpc_executor_scheduler(GRPC_EXECUTOR_LONG));

@ -265,7 +265,7 @@ static void test_receive(int number_of_clients) {
GPR_ASSERT(connect(clifd, (struct sockaddr*)addr,
(socklen_t)resolved_addr.len) == 0);
GPR_ASSERT(5 == write(clifd, "hello", 5));
while (g_number_of_reads == number_of_reads_before &&
while (g_number_of_bytes_read < (number_of_bytes_read_before + 5) &&
deadline > grpc_exec_ctx_now(&exec_ctx)) {
grpc_pollset_worker* worker = nullptr;
GPR_ASSERT(GRPC_LOG_IF_ERROR(

Loading…
Cancel
Save