aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/fling/server.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-05-26 16:15:34 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-05-26 16:15:34 -0700
commitee945e8325ff7d67be6990b6193e19f865ec7b30 (patch)
treefa0d40b2a59de878f4db98636441db680b896cc8 /test/core/fling/server.c
parent9db8f1ade2222a00578abf5300abd1734a0e5ed4 (diff)
Work towards removing grpc_server_shutdown
Diffstat (limited to 'test/core/fling/server.c')
-rw-r--r--test/core/fling/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/fling/server.c b/test/core/fling/server.c
index 48304ed8d7..87254ee1dc 100644
--- a/test/core/fling/server.c
+++ b/test/core/fling/server.c
@@ -233,7 +233,8 @@ int main(int argc, char **argv) {
while (!shutdown_finished) {
if (got_sigint && !shutdown_started) {
gpr_log(GPR_INFO, "Shutting down due to SIGINT");
- grpc_server_shutdown(server);
+ grpc_server_shutdown_and_notify(server, tag(1000));
+ GPR_ASSERT(grpc_completion_queue_pluck(cq, tag(1000), GRPC_TIMEOUT_SECONDS_TO_DEADLINE(5)).type == GRPC_OP_COMPLETE);
grpc_completion_queue_shutdown(cq);
shutdown_started = 1;
}