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

Function ajp_msg_reuse

modules/proxy/ajp_msg.c:204–217  ·  view source on GitHub ↗

* Reuse an AJP Message * * @param msg AJP Message to reuse * @return APR_SUCCESS or error */

Source from the content-addressed store, hash-verified

202 * @return APR_SUCCESS or error
203 */
204apr_status_t ajp_msg_reuse(ajp_msg_t *msg)
205{
206 apr_byte_t *buf;
207 apr_size_t max_size;
208
209 buf = msg->buf;
210 max_size = msg->max_size;
211 memset(msg, 0, sizeof(ajp_msg_t));
212 msg->buf = buf;
213 msg->max_size = max_size;
214 msg->header_len = AJP_HEADER_LEN;
215 ajp_msg_reset(msg);
216 return APR_SUCCESS;
217}
218
219/**
220 * Mark the end of an AJP Message

Callers 2

ajp_handle_cping_cpongFunction · 0.85
ajp_read_headerFunction · 0.85

Calls 1

ajp_msg_resetFunction · 0.85

Tested by

no test coverage detected