MCPcopy Create free account
hub / github.com/apache/httpd / h2_session_status_from_apr_status

Function h2_session_status_from_apr_status

modules/http2/h2_session.c:67–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 const char *msg, int force_close);
66
67static 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
81static h2_stream *get_stream(h2_session *session, int stream_id)
82{

Callers 1

send_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected