aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/server_async.cc
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2016-07-13 14:51:44 -0700
committerGravatar Vijay Pai <vpai@google.com>2016-07-13 14:51:44 -0700
commitad7c52761895c46a3964ab8864d11c7aa269a29b (patch)
tree92f8363316c0c083b82fbc2c2ec3085617f18c4e /test/cpp/qps/server_async.cc
parenta831651aa53fcb44cbd57460de99625be33c93a5 (diff)
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
Diffstat (limited to 'test/cpp/qps/server_async.cc')
-rw-r--r--test/cpp/qps/server_async.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/cpp/qps/server_async.cc b/test/cpp/qps/server_async.cc
index 85acefa00b..da1a289e02 100644
--- a/test/cpp/qps/server_async.cc
+++ b/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();
}