From 9a58df08555ddd5a127dd64c36f4d1ba07ea0d0b Mon Sep 17 00:00:00 2001 From: ctiller <ctiller@google.com> Date: Thu, 11 Dec 2014 16:26:49 -0800 Subject: [PATCH] Explain server termination semantics a little better. Change on 2014/12/11 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81923801 --- include/grpc/grpc.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h index ac9f0d83a9..3b09d51a14 100644 --- a/include/grpc/grpc.h +++ b/include/grpc/grpc.h @@ -439,10 +439,13 @@ int grpc_server_add_secure_http2_port(grpc_server *server, const char *addr); /* Start a server - tells all listeners to start listening */ void grpc_server_start(grpc_server *server); -/* Begin shutting down a server. */ +/* Begin shutting down a server. + After completion, no new calls or connections will be admitted. + Existing calls will be allowed to complete. */ void grpc_server_shutdown(grpc_server *server); -/* Destroy a server */ +/* Destroy a server. + Forcefully cancels all existing calls. */ void grpc_server_destroy(grpc_server *server); #ifdef __cplusplus -- GitLab