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

Scott Gifford <[email protected]>
Newsgroups gmane.network.djbdns
Message-ID <[email protected]>
Mark Johnson <[email protected]> writes:

> On Fri, Mar 27, 2009 at 4:26 AM, Laurent Bercot <[email protected]> wrote:

[...]

> I'd really prefer to have tinydns notice that data.cdb has changed and
> re-open it on it's own, but I'd take a look at any proposed SIGHUP
> solutions.  

An interesting middle ground would be to have tinydns always re-open
the data file when it gets a SIGHUP, then have an environment variable
with the number of seconds it should wait between opening the file.
If the env var was unset or set to 0, it would behave as it currently
does; if it was set to 1, it would behave like the proposed patch; if
it was set to some special flag, like -1, it could never reload the
file except when it got SIGHUP.  That would preserve the current
behavior as a default, but make it easy for sites to tweak the
performance as much as they neeeded.

-----Scott.
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.