Caching in libunbound
wouter at nlnetlabs.nl
Thu Mar 21 12:26:09 UTC 2019
On 3/21/19 1:16 PM, Rick van Rein via Unbound-users wrote:
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the Unbound-users