| 50 | |
| 51 | |
| 52 | static const char *h2_ss_str(const h2_stream_state_t state) |
| 53 | { |
| 54 | switch (state) { |
| 55 | case H2_SS_IDLE: |
| 56 | return "IDLE"; |
| 57 | case H2_SS_RSVD_L: |
| 58 | return "RESERVED_LOCAL"; |
| 59 | case H2_SS_RSVD_R: |
| 60 | return "RESERVED_REMOTE"; |
| 61 | case H2_SS_OPEN: |
| 62 | return "OPEN"; |
| 63 | case H2_SS_CLOSED_L: |
| 64 | return "HALF_CLOSED_LOCAL"; |
| 65 | case H2_SS_CLOSED_R: |
| 66 | return "HALF_CLOSED_REMOTE"; |
| 67 | case H2_SS_CLOSED: |
| 68 | return "CLOSED"; |
| 69 | case H2_SS_CLEANUP: |
| 70 | return "CLEANUP"; |
| 71 | default: |
| 72 | return "UNKNOWN"; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | const char *h2_stream_state_str(const h2_stream *stream) |
| 77 | { |
no outgoing calls
no test coverage detected