Temporary workaround by setting up a deadline on server shutdown.

This reveals an issue that needs to be solved:
D0713 14:48:28.049861213   14503 server.c:704]               Waiting for 44 channels and 0/1 listeners to be destroyed before shutting down server
pull/7285/head
Vijay Pai 8 years ago
parent a831651aa5
commit ad7c527618
  1. 5
      test/cpp/qps/server_async.cc

@ -131,7 +131,10 @@ class AsyncQpsServerTest : public Server {
std::lock_guard<std::mutex> lock((*ss)->mutex);
(*ss)->shutdown = true;
}
server_->Shutdown();
// TODO (vpai): Remove this deadline and allow Shutdown to finish properly
auto deadline =
std::chrono::system_clock::now() + std::chrono::seconds(3);
server_->Shutdown(deadline);
for (auto cq = srv_cqs_.begin(); cq != srv_cqs_.end(); ++cq) {
(*cq)->Shutdown();
}

Loading…
Cancel
Save