diff options
author | Craig Tiller <ctiller@google.com> | 2015-07-30 16:00:47 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-07-30 16:00:47 -0700 |
commit | 98371d9ced65eda7fc216d51a4913e907791e9b9 (patch) | |
tree | 3135a4b3dc93eed44362510e7071e060f635df21 /src/core/surface | |
parent | d1c003444c9d8f12efc455d208dae3209a61e9db (diff) |
Reject incoming calls if the server is already shutting down
Diffstat (limited to 'src/core/surface')
-rw-r--r-- | src/core/surface/server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/surface/server.c b/src/core/surface/server.c index b46558df1b..35b3867620 100644 --- a/src/core/surface/server.c +++ b/src/core/surface/server.c @@ -966,6 +966,7 @@ void grpc_server_setup_transport(grpc_server *s, grpc_transport *transport, op.set_accept_stream_user_data = chand; op.on_connectivity_state_change = &chand->channel_connectivity_changed; op.connectivity_state = &chand->connectivity_state; + op.disconnect = gpr_atm_acq_load(&s->shutdown_flag); grpc_transport_perform_op(transport, &op); } |