| 65 | const char *msg, int force_close); |
| 66 | |
| 67 | static int h2_session_status_from_apr_status(apr_status_t rv) |
| 68 | { |
| 69 | if (rv == APR_SUCCESS) { |
| 70 | return NGHTTP2_NO_ERROR; |
| 71 | } |
| 72 | else if (APR_STATUS_IS_EAGAIN(rv)) { |
| 73 | return NGHTTP2_ERR_WOULDBLOCK; |
| 74 | } |
| 75 | else if (APR_STATUS_IS_EOF(rv)) { |
| 76 | return NGHTTP2_ERR_EOF; |
| 77 | } |
| 78 | return NGHTTP2_ERR_PROTO; |
| 79 | } |
| 80 | |
| 81 | static h2_stream *get_stream(h2_session *session, int stream_id) |
| 82 | { |