Reject incoming calls if the server is already shutting down

pull/2765/head
Craig Tiller 9 years ago
parent d1c003444c
commit 98371d9ced
  1. 1
      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);
}

Loading…
Cancel
Save