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

Function ajp_msg_create

modules/proxy/ajp_msg.c:566–579  ·  view source on GitHub ↗

* Create an AJP Message from pool * * @param pool memory pool to allocate AJP message from * @param size size of the buffer to create * @param rmsg Pointer to newly created AJP message * @return APR_SUCCESS or error */

Source from the content-addressed store, hash-verified

564 * @return APR_SUCCESS or error
565 */
566apr_status_t ajp_msg_create(apr_pool_t *pool, apr_size_t size, ajp_msg_t **rmsg)
567{
568 ajp_msg_t *msg = (ajp_msg_t *)apr_pcalloc(pool, sizeof(ajp_msg_t));
569
570 msg->server_side = 0;
571
572 msg->buf = (apr_byte_t *)apr_palloc(pool, size);
573 msg->len = 0;
574 msg->header_len = AJP_HEADER_LEN;
575 msg->max_size = size;
576 *rmsg = msg;
577
578 return APR_SUCCESS;
579}
580
581/**
582 * Recopy an AJP Message to another

Callers 4

ajp_handle_cping_cpongFunction · 0.85
ajp_send_headerFunction · 0.85
ajp_read_headerFunction · 0.85
ajp_alloc_data_msgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected