Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 11224 invoked by uid 500); 28 Feb 2003 16:41:54 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 11204 invoked from network); 28 Feb 2003 16:41:54 -0000 Message-ID: <3E5F912B.6090907@orangatango.net> Date: Fri, 28 Feb 2003 09:41:15 -0700 From: Chris Monson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: mod_proxy and AAAA queries Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have noticed that mod_proxy, in its apr_sockaddr_info_get calls uses unspecified resolution and sends it no flags. This, of course, allows the APR to make the decision as to how to resolve the hostname, but it causes some truly amazing slowdowns when AAAA authorities are not available for particular hosts (for example, toolbar.aol.com). The AAAA requests must time out before the A request can be made. To solve this problem, I am interested in patching mod_proxy and friends, creating a new configuration directive, something like ProxyResolutionType (or order). This would take a list of parameters indicating which kinds of queries will be tried, and would map to flags passed into apr_sockaddr_info_get. Doing this would allow me to specify that I *never* want to make AAAA queries or A6 queries (or to specify that I want to make them after trying the currently more common A queries). The patch is fairly trivial, but I wanted to get some feedback on the general idea before plunging forward with it. One way or another, this is a problem that has really bitten me, so patch I will, but I would like to do it right and in a way that is useful for others. Any thoughts? C