File tree Expand file tree Collapse file tree 5 files changed +23
-2
lines changed Expand file tree Collapse file tree 5 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ const char* GetStatusIntPropertyUrl(StatusIntProperty key) {
83
83
return TYPE_URL (TYPE_INT_TAG " channel_connectivity_state" );
84
84
case StatusIntProperty::kLbPolicyDrop :
85
85
return TYPE_URL (TYPE_INT_TAG " lb_policy_drop" );
86
+ case StatusIntProperty::kStreamNetworkState :
87
+ return TYPE_URL (TYPE_INT_TAG " stream_network_state" );
86
88
}
87
89
GPR_UNREACHABLE_CODE (return " unknown" );
88
90
}
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ struct upb_arena;
37
37
namespace grpc_core {
38
38
39
39
// / This enum should have the same value of grpc_error_ints
40
- // TODO(veblush): Use camel-case names once migration to absl::Status is done.
41
40
enum class StatusIntProperty {
42
41
// / 'errno' from the operating system
43
42
kErrorNo ,
@@ -72,10 +71,11 @@ enum class StatusIntProperty {
72
71
ChannelConnectivityState,
73
72
// / LB policy drop
74
73
kLbPolicyDrop ,
74
+ // / stream network state
75
+ kStreamNetworkState ,
75
76
};
76
77
77
78
// / This enum should have the same value of grpc_error_strs
78
- // TODO(veblush): Use camel-case names once migration to absl::Status is done.
79
79
enum class StatusStrProperty {
80
80
// / top-level textual description of this error
81
81
kDescription ,
Original file line number Diff line number Diff line change @@ -252,6 +252,8 @@ static const char* error_int_name(grpc_error_ints key) {
252
252
return " channel_connectivity_state" ;
253
253
case GRPC_ERROR_INT_LB_POLICY_DROP:
254
254
return " lb_policy_drop" ;
255
+ case GRPC_ERROR_INT_STREAM_NETWORK_STATE:
256
+ return " stream_network_state" ;
255
257
case GRPC_ERROR_INT_MAX:
256
258
GPR_UNREACHABLE_CODE (return " unknown" );
257
259
}
Original file line number Diff line number Diff line change @@ -96,6 +96,9 @@ typedef enum {
96
96
// / LB policy drop
97
97
GRPC_ERROR_INT_LB_POLICY_DROP =
98
98
static_cast <int >(grpc_core::StatusIntProperty::kLbPolicyDrop ),
99
+ // / stream network state
100
+ GRPC_ERROR_INT_STREAM_NETWORK_STATE =
101
+ static_cast <int >(grpc_core::StatusIntProperty::kStreamNetworkState ),
99
102
100
103
// / Must always be last
101
104
GRPC_ERROR_INT_MAX,
Original file line number Diff line number Diff line change 27
27
#include " src/core/lib/iomgr/exec_ctx.h"
28
28
#include " src/core/lib/transport/http2_errors.h"
29
29
30
+ namespace grpc_core {
31
+
32
+ enum class StreamNetworkState {
33
+ // Stream was never sent on the wire (e.g., because the transport became
34
+ // disconnected by the time the call got down to it).
35
+ kNotSentOnWire ,
36
+ // Stream was sent on the wire but was not seen by the server application
37
+ // code (e.g., client sent data but then received a GOAWAY with a lower
38
+ // stream ID).
39
+ kNotSeenByServer ,
40
+ };
41
+
42
+ } // namespace grpc_core
43
+
30
44
// / A utility function to get the status code and message to be returned
31
45
// / to the application. If not set in the top-level message, looks
32
46
// / through child errors until it finds the first one with these attributes.
You can’t perform that action at this time.
0 commit comments