Re: Reducing DNS latency
"Vulimiri, Ashish" <[email protected]> Fri, 5 Dec 2014 21:12:12 +0000
| Newsgroups | gmane.comp.mozilla.devel.netlib |
|---|---|
| Message-ID | <[email protected]> |
> On Dec 5, 2014, at 1:59 PM, Daniel Stenberg <[email protected]> wrote: > > On Fri, 5 Dec 2014, Vulimiri, Ashish wrote: > >> Would there by any interest in incorporating something like this in the Firefox code? > > Have you given any closer thoughts on more exactly how it would or could be done? Firefox is using the "stock" name resolving functions after all... I think this would need to be done as a drop-in replacement for getaddrinfo and similar that actually goes off and sends requests to multiple DNS servers, listens for responses, and returns once it gets a first reply. One issue is that depending on how this is implemented, it would either end up creating a separate socket on each DNS request to send requests and wait for responses, or require a separate thread that would manage all requests/responses -- both of which are their own form of overhead.