Fix the incorrect number of states

There're five states: CONNECTING, READY, TRANSIENT_FAILURE, IDLE, SHUTDOWN.
pull/9055/head
randvis 8 years ago committed by GitHub
parent 48b1558823
commit 0a588c6453
  1. 4
      doc/connectivity-semantics-and-api.md

@ -16,7 +16,7 @@ reconnect, or in the case of HTTP/2 GO_AWAY, re-resolve the name and reconnect.
To hide the details of all this activity from the user of the gRPC API (i.e., To hide the details of all this activity from the user of the gRPC API (i.e.,
application code) while exposing meaningful information about the state of a application code) while exposing meaningful information about the state of a
channel, we use a state machine with four states, defined below: channel, we use a state machine with five states, defined below:
CONNECTING: The channel is trying to establish a connection and is waiting to CONNECTING: The channel is trying to establish a connection and is waiting to
make progress on one of the steps involved in name resolution, TCP connection make progress on one of the steps involved in name resolution, TCP connection
@ -116,7 +116,7 @@ Channel State API
All gRPC libraries will expose a channel-level API method to poll the current All gRPC libraries will expose a channel-level API method to poll the current
state of a channel. In C++, this method is called GetCurrentState and returns state of a channel. In C++, this method is called GetCurrentState and returns
an enum for one of the four legal states. an enum for one of the five legal states.
All libraries should also expose an API that enables the application (user of All libraries should also expose an API that enables the application (user of
the gRPC API) to be notified when the channel state changes. Since state the gRPC API) to be notified when the channel state changes. Since state

Loading…
Cancel
Save