Fix timeout on async server shutdown

Server was continuing to make requests for new calls forever, which were
starving out the shutdown sequence. Change order and win.
pull/6612/head
Craig Tiller 9 years ago
parent 8c2d373aca
commit e67f7b6b54
  1. 2
      test/cpp/qps/server_async.cc

@ -131,10 +131,10 @@ class AsyncQpsServerTest : public Server {
}
}
~AsyncQpsServerTest() {
server_->Shutdown();
for (auto ss = shutdown_state_.begin(); ss != shutdown_state_.end(); ++ss) {
(*ss)->set_shutdown();
}
server_->Shutdown();
for (auto thr = threads_.begin(); thr != threads_.end(); thr++) {
thr->join();
}

Loading…
Cancel
Save