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

Function ajp_parse_reuse

modules/proxy/ajp_header.c:855–875  ·  view source on GitHub ↗

Check the reuse flag in CMD_AJP13_END_RESPONSE */

Source from the content-addressed store, hash-verified

853
854/* Check the reuse flag in CMD_AJP13_END_RESPONSE */
855apr_status_t ajp_parse_reuse(request_rec *r, ajp_msg_t *msg,
856 apr_byte_t *reuse)
857{
858 apr_byte_t result;
859 apr_status_t rc;
860
861 rc = ajp_msg_get_uint8(msg, &result);
862 if (rc != APR_SUCCESS) {
863 ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00999)
864 "ajp_parse_reuse: ajp_msg_get_byte failed");
865 return rc;
866 }
867 if (result != CMD_AJP13_END_RESPONSE) {
868 ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01000)
869 "ajp_parse_reuse: wrong type %s (0x%02x) expecting %s (0x%02x)",
870 ajp_type_str(result), result,
871 ajp_type_str(CMD_AJP13_END_RESPONSE), CMD_AJP13_END_RESPONSE);
872 return AJP_EBAD_HEADER;
873 }
874 return ajp_msg_get_uint8(msg, reuse);
875}
876
877/*
878 * Allocate a msg to send data

Callers 1

ap_proxy_ajp_requestFunction · 0.85

Calls 2

ajp_msg_get_uint8Function · 0.85
ajp_type_strFunction · 0.85

Tested by

no test coverage detected