Put timeout on server shutdown
This commit is contained in:
parent
4668600d11
commit
d514b21cc8
|
|
@ -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…
Reference in New Issue