Re: [Zinq-general] Patch to open data.cdb no more than once per second

John Levine <[email protected]>
Newsgroups gmane.network.djbdns
Message-ID <[email protected]>
>I thought tinydns always reopens data.cdb on every query, and this patch
>changes it to not do that as often. It makes sense to only reopen it if has
>changed (by stat()ing it), and rate-limit that. So I'm curious if there are
>cases where data.cdb is updated more than once per second - it doesn't seem
>like a good fit for a 'constant' database. Maybe I misunderstand.

No, you understand it just fine.  It looks to me like the original
code was written for DNS servers that got a lot less traffic than
modern ones do; if you get one query per second or less, the one second
patch makes no difference.

I've been using the one second patch for many years with no adverse
effect.  I've even thought of increasing it to a one minute patch but
my data.cdb isn't all that large so it wouldn't make much difference.

R's,
John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.