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

Function connection_constructor

modules/proxy/proxy_util.c:1732–1751  ·  view source on GitHub ↗

reslist constructor */

Source from the content-addressed store, hash-verified

1730
1731/* reslist constructor */
1732static apr_status_t connection_constructor(void **resource, void *params,
1733 apr_pool_t *pool)
1734{
1735 apr_pool_t *p;
1736 proxy_conn_rec *conn;
1737 proxy_worker *worker = (proxy_worker *)params;
1738
1739 /*
1740 * Create a subpool for each connection
1741 * This keeps the memory consumption constant
1742 * when it's recycled or destroyed.
1743 */
1744 apr_pool_create(&p, pool);
1745 apr_pool_tag(p, "proxy_conn_pool");
1746 conn = connection_make(p, worker);
1747 conn->inreslist = 1;
1748
1749 *resource = conn;
1750 return APR_SUCCESS;
1751}
1752
1753/* reslist destructor */
1754static apr_status_t connection_destructor(void *resource, void *params,

Callers 2

Calls 1

connection_makeFunction · 0.85

Tested by

no test coverage detected