return -1;
}
+ if (fr_rest_slab_list_alloc(t, &t->slab, mctx->el, &inst->conn_config.reuse,
+ rest_conn_alloc, NULL, inst, false) < 0) {
+ ERROR("Connection handle pool instantiation failed");
+ return -1;
+ }
+
mhandle = fr_curl_io_init(t, mctx->el, inst->multiplex);
if (!mhandle) return -1;
talloc_free(t->mhandle); /* Ensure this is shutdown before the pool */
fr_pool_free(t->pool);
+ talloc_free(t->slab);
return 0;
}
return -1;
}
+ inst->conn_config.reuse.num_children = 1;
+ inst->conn_config.reuse.child_pool_size = sizeof(rlm_rest_curl_context_t);
+
return 0;
}