On 22:29:14 28/04/2005 [EMAIL PROTECTED] wrote:
> Untested: "spawn" several several PoCo::Client::DNS aliases. You could
> either strictly round-robin your posting to the spawned resolvers in
> start_next_lookup.

So in other words would have one alias per nameserver and round-robin
those aliases? That sounds like the quick fix.

> Or, if you really want to balance things out, keep
> up with how many queries each resolver is currently handling by
> incrementing some counter at the start of start_next_lookup and
> decrementing it in got_answer. Then choose a resolver accordingly
> (don't forget to randomly pick from resolvers that are available).

So the same thing with aliases plus counters kept in the heap for each
posted query. Sounds a bit more complicated but will probably be the more
elegant solution.

Lance, thanks a lot for the input. 

I'll give the first idea a try first. :)

-- 
Sincerely,

Lari Huttunen

Reply via email to