[bind10-dev] parkinglot addition
Jelte Jansen
jelte at isc.org
Mon Nov 2 11:47:47 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i've just removed the built-in fixed list of zones for parkinglot, and replaced
it by a query to the config manager for its known list. So now it won't serve
anything by default, but it will actually remember the zones set up last time.
I did run into a bootstrap issue (hi evan :) ); the parkinglot daemon starts
faster than the config manager, so a zone list query on startup will get lost.
I've dirty-hacked around that issue for now by adding a sleep() before sending
the zone list command, but this of course is not a good solution (the real one
being that the boss should wait for the config manager to signal that it's up
and running before starting the rest of the system).
This also presented another issue; i want the parkinglot to wait until it gets
the zone list from the cfg manager before continuing its initialization, so i
set the receive-message to blocking (or, in this case non-nonblocking ;) ),
however, if for some reason there is no answer, this will result in a parking
lot eternally blocked waiting for said answer.
That raises two questions;
1. is there a way to set recvmsg to blocking-but-fail-if-nothing-seen?
2. should there be? (in this case we could make it async and update the zone
list if there happens to be a answer, similar to the way it is updated know is a
zone_added command is seen, but i have a feeling that sometimes we do not want
such an approach)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEUEARECAAYFAkruxuMACgkQ4nZCKsdOncVC/gCVEt59RiG43QcXOhuMoYCJHP/K
1gCff7XAGN5/J8KQ3VQBrUkefZ4MG14=
=Sr7G
-----END PGP SIGNATURE-----
More information about the bind10-dev
mailing list