Two connection pools in one module.
Matthew Newton
mcn4 at leicester.ac.uk
Wed Jul 6 17:56:47 CEST 2016
On Wed, Jul 06, 2016 at 03:21:00PM +0000, Ленченко Илья Анатольевич wrote:
> {
> rlm_smt_t *inst = instance;
> inst->poolMYSQL = fr_connection_pool_module_init(conf, inst, mod_conn_create_mysql, NULL, NULL);
> if (!inst->poolMYSQL) {
> return -1;
> }
> inst->poolRabbitMQ = fr_connection_pool_module_init(conf, inst, mod_conn_create_rmq, NULL, NULL);
> if (!inst->poolRabbitMQ) {
> return -1;
> }
Using the same 'conf' for each one doesn't look good to me. I
would first try with different conf subsection for each of mysql
and rabbitmq, and pass those through to fr_connection_pool_module_init.
Matthew
--
Matthew Newton, Ph.D. <mcn4 at leicester.ac.uk>
Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom
For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>
More information about the Freeradius-Devel
mailing list