MCPcopy Create free account
hub / github.com/apache/brpc / H2StreamState2Str

Function H2StreamState2Str

src/brpc/policy/http2_rpc_protocol.cpp:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58BRPC_VALIDATE_GFLAG(h2_client_connection_window_size, CheckConnWindowSize);
59
60const char* H2StreamState2Str(H2StreamState s) {
61 switch (s) {
62 case H2_STREAM_IDLE: return "idle";
63 case H2_STREAM_RESERVED_LOCAL: return "reserved(local)";
64 case H2_STREAM_RESERVED_REMOTE: return "reserved(remote)";
65 case H2_STREAM_OPEN: return "open";
66 case H2_STREAM_HALF_CLOSED_LOCAL: return "half-closed(local)";
67 case H2_STREAM_HALF_CLOSED_REMOTE: return "half-closed(remote)";
68 case H2_STREAM_CLOSED: return "closed";
69 }
70 return "unknown(H2StreamState)";
71}
72
73static const char* H2ConnectionState2Str(H2ConnectionState s) {
74 switch (s) {

Callers 3

OnResetStreamMethod · 0.85
OnEndStreamMethod · 0.85
SetStateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected