Caching in libunbound

Wouter Wijngaards wouter at nlnetlabs.nl
Thu Mar 21 12:26:09 UTC 2019


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20190321/5536cd38/attachment.bin>


More information about the Unbound-users mailing list