From 09335338eb03e2007ab1d2133ca82545c3ffd884 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Wed, 23 May 2018 12:59:12 -0700 Subject: [PATCH] Indicate the reasoning for 5 seconds deadline --- test/core/end2end/fuzzers/server_fuzzer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/core/end2end/fuzzers/server_fuzzer.cc b/test/core/end2end/fuzzers/server_fuzzer.cc index d1259259f39..248c34cbc18 100644 --- a/test/core/end2end/fuzzers/server_fuzzer.cc +++ b/test/core/end2end/fuzzers/server_fuzzer.cc @@ -112,6 +112,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { // thread trying to cancel the RPC and thereby acquiring a few references // to the call. This will prevent the shutdown to complete till the timer // thread releases those references. + // As a solution, we are going to keep performing a cq_next for a + // liberal period of 5 seconds for the timer thread to complete its work. do { ev = grpc_completion_queue_next(cq, gpr_inf_past(GPR_CLOCK_REALTIME), nullptr);