From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robin Tarsiger Newsgroups: gmane.emacs.devel Subject: Re: ai_flags in calls to getaddrinfo Date: Fri, 1 Jan 2021 06:04:34 -0600 Message-ID: <270e3e6c-84ed-c512-60bc-992df93b065a@dasyatidae.com> References: <83sg7mggls.fsf@gnu.org> <838s9dgkzt.fsf@gnu.org> <05b7ddd3-2a37-8ae6-31b8-07e212538595@dasyatidae.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39215"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 01 13:05:33 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kvJBV-000A5J-Ae for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Jan 2021 13:05:33 +0100 Original-Received: from localhost ([::1]:52444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvJBU-0000hC-4s for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Jan 2021 07:05:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvJAd-00009l-A1 for emacs-devel@gnu.org; Fri, 01 Jan 2021 07:04:39 -0500 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:49603) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvJAa-0002sa-HI; Fri, 01 Jan 2021 07:04:39 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 9687B550; Fri, 1 Jan 2021 07:04:34 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 01 Jan 2021 07:04:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=t3Y69oLYCJ6khhmwnZEa9z/P7WB8vq/Drd1ddVwMf KU=; b=dZ6brLP9VMkIhThq8tMwnPBZlhZ9KIT9bj5fRBIBxf855hArg02O8AjpW fmtN4ahqcIjh9wbpL+2fL9lE4RdbUxKZ5v8zZigLXnKLBKfXDE60YMvtBz8+YJ1j +ofaf+W7bRTlXuW3s6SXbcj99LS4lzyBgkFtUWfHfHw9Cm8S1br74lvrZU9RBTLy ofHIe/jZMxJWw8cEz7LyYFPIOKc694r1fwCJ879Z8AwiF1FttARXUP7peYzy1FMl Hy6ShvCHHqXumydLol4ErX4/duEmKt1iI7lJMnG8XfwtlQ8bjkPEH48BfvRK7fpZ tJF3pcuyu+zWYebn0e62JuGfIysFg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddvjedgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffhvfhfkffffgggjggtgfesthejredttdefjeenucfhrhhomheptfhosghi nhcuvfgrrhhsihhgvghruceorhhtthesuggrshihrghtihgurggvrdgtohhmqeenucggtf frrghtthgvrhhnpeekteelveetgedugedvvdehiedtlefhieeiiefhgeefueeltdelhfev fedtheejteenucfkphepjeeirddvheefrdejhedrfeegnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprhhtthesuggrshihrghtihgurggvrdgt ohhm X-ME-Proxy: Original-Received: from [192.168.1.65] (76-253-75-34.lightspeed.austtx.sbcglobal.net [76.253.75.34]) by mail.messagingengine.com (Postfix) with ESMTPA id 901EB108005C; Fri, 1 Jan 2021 07:04:33 -0500 (EST) In-Reply-To: <05b7ddd3-2a37-8ae6-31b8-07e212538595@dasyatidae.com> Content-Language: en-US-large Received-SPF: none client-ip=64.147.123.21; envelope-from=rtt@dasyatidae.com; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -52 X-Spam_score: -5.3 X-Spam_bar: ----- X-Spam_report: (-5.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-2.749, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262237 Archived-At: Robin Tarsiger wrote: > What happens if you pass nil for FAMILY but without the AI_V4MAPPED > patch, on that system? Have you observed AI_V4MAPPED producing better > results in any circumstance when you do not set FAMILY to ipv6? > > I conjecture that your upstream resolver is blocking AAAA queries, and > that AF_UNSPEC is going through a slightly different path, maybe even > issuing an ANY query which is actually responded to with records from > both address families, which are then passed through because response > filtering and query filtering are different. If this is close to true, > I'm not sure there's a sane way for an application to handle > inconsistent resolver behavior of that stripe. Aside: Inconsistent caching resolver behavior often varies depending on the state of the cache. So it is useful to try things like this two or three times in a row in different orders, if you are not sure if your DNS resolution chain is doing something dubious. -RTT