|
|
@ -310,7 +310,7 @@ class AsyncStreamingClient GRPC_FINAL : public Client { |
|
|
|
bool ThreadFunc(Histogram *histogram, size_t thread_idx) GRPC_OVERRIDE { |
|
|
|
bool ThreadFunc(Histogram *histogram, size_t thread_idx) GRPC_OVERRIDE { |
|
|
|
void *got_tag; |
|
|
|
void *got_tag; |
|
|
|
bool ok; |
|
|
|
bool ok; |
|
|
|
switch (cli_cqs_[thread_idx]->AsyncNext(&got_tag, &ok, std::chrono::system_clock::now() + std::chrono::seconds(11))) { |
|
|
|
switch (cli_cqs_[thread_idx]->AsyncNext(&got_tag, &ok, std::chrono::system_clock::now() + std::chrono::seconds(1))) { |
|
|
|
case CompletionQueue::SHUTDOWN: return false; |
|
|
|
case CompletionQueue::SHUTDOWN: return false; |
|
|
|
case CompletionQueue::TIMEOUT: return true; |
|
|
|
case CompletionQueue::TIMEOUT: return true; |
|
|
|
case CompletionQueue::GOT_EVENT: break; |
|
|
|
case CompletionQueue::GOT_EVENT: break; |
|
|
|