Put timeout on server shutdown

pull/3174/head
vjpai 9 years ago
parent 4668600d11
commit d514b21cc8
  1. 4
      test/cpp/qps/server_async.cc

@ -101,7 +101,9 @@ class AsyncQpsServerTest : public Server {
}
}
~AsyncQpsServerTest() {
server_->Shutdown();
auto deadline = std::chrono::high_resolution_clock::now() +
std::chrono::seconds(10);
server_->Shutdown(deadline);
for (auto ss = shutdown_state_.begin(); ss != shutdown_state_.end(); ++ss) {
(*ss)->set_shutdown();
}

Loading…
Cancel
Save