9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] modest dns fixes
@ 2012-01-20  3:36 erik quanstrom
  0 siblings, 0 replies; only message in thread
From: erik quanstrom @ 2012-01-20  3:36 UTC (permalink / raw)
  To: 9fans

i've pushed my modest dns fixes to sources in contrib quanstro/ndb.
this code has been running on my machine for a while, and i'm just
experimenting with it in more production environments.

in addition to the changes outlined before, i added some code to
terminate queries when no namserver is available.  this prevents an
O(n²) lookup, where n is the number of name servers.  (example
ndb/dnsdebug www.tridentaudio.co.uk; get some popcorn.)

i have specificly not addressed the database corruption problems.
these would seem at least partially to be a result of rrcopy() being
a shallow copy, and not doing anything about refcounting
subordinate or ->next records.  (thus more locking would seem
not the answer.)

nor have i addressed the bio problem.  making the buffer in
<ndb.h> 8k does sidestep the issue.

i hope this is useful, at least as a stopgap!

- erik



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-20  3:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-20  3:36 [9fans] modest dns fixes erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).