Hi Rick, On 3/21/19 1:16 PM, Rick van Rein via Unbound-users wrote: > Ah... > > I was thinking that Unbound might merge processes... > >> However, the hope >> I had was that since Unbound == Unbound it might trust itself and allow >> two streams of requests to come together. > > ...because it fork()ed a process in the background, which I assumed > might be a shared Unbound daemon. > > Apparently this is just to service query/responses. Unexpected, as I > had setup an event loop and was tidily calling ub_process() and > receiving its callbacks. > > To be honest, I don't really understand why Unbound doesn't have a modus > operandi that supports event loops without thread or process!
It does, with the unbound_event api. See libunbound/unbound-event.h I believe this is also what getdns uses. Best regards, Wouter
signature.asc
Description: OpenPGP digital signature