Multiple libunbound instances

Hi there,

Is it safe to call ub_ctx_create() multiple times in a single process?

More generally, I've observed a case where a process creates a
distinct ub_ctx for each module in a single-process plugin
architecture, and this appears to interfere with normal operation once
both of them are actually active. Is this a known issue?

-MSK

Hi Murray,

Hi there,

Is it safe to call ub_ctx_create() multiple times in a single
process?

This should work. Every context is unique, has its own locks, its own
backend-process-or-thread if async resolving, and its own config options.

More generally, I've observed a case where a process creates a
distinct ub_ctx for each module in a single-process plugin
architecture, and this appears to interfere with normal operation
once both of them are actually active. Is this a known issue?

Not sure, you may be running out of file descriptors if you open many
of them (depending on the options).

Best regards,
   Wouter