From unknown Tue Jun 17 01:43:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#77503: 30.1; eww does not fall back to ipv4 if ipv6 is not working Resent-From: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Apr 2025 18:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77503 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 77503@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174370547912436 (code B ref -1); Thu, 03 Apr 2025 18:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Apr 2025 18:37:59 +0000 Received: from localhost ([127.0.0.1]:35668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u0PRu-0003EW-H4 for submit@debbugs.gnu.org; Thu, 03 Apr 2025 14:37:58 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54174) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u0PRr-0003ED-Ec for submit@debbugs.gnu.org; Thu, 03 Apr 2025 14:37:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u0PRj-0000U0-Cx for bug-gnu-emacs@gnu.org; Thu, 03 Apr 2025 14:37:47 -0400 Received: from plesklin7.if2.ehiweb.it ([79.98.45.17] helo=plesklin7.ehiweb.it) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u0PRh-0005Jm-92 for bug-gnu-emacs@gnu.org; Thu, 03 Apr 2025 14:37:47 -0400 Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by plesklin7.ehiweb.it (Postfix) with ESMTPSA id DAE671C2782 for ; Thu, 3 Apr 2025 20:37:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=potorti.it; s=default; t=1743705460; bh=hyODJYSJ7eY1IzDMDSSchuMDVQrm4nC6wHMVdhP2WJw=; h=Received:From:To:Subject; b=giLxm18wI2fI7boRPxm77gBOxj89nTKNFOwezXCGFXPoxilVtJkwzWcOxJPiEqHBm oBdpVuGp6UcXVcysIsKYJ+lT9KnaTXUTjpZH6dSVmfFIv50/NwUmLxedJpHG4hfFSx tgMeZgz+S+CNPfoozlx8xpoduFnQgenXYQdxFhuo= Authentication-Results: plesklin7.ehiweb.it; spf=pass (sender IP is 146.48.81.102) smtp.mailfrom=pot@potorti.it smtp.helo=tucano.isti.cnr.it Received-SPF: pass (plesklin7.ehiweb.it: connection is authenticated) Received: from pot by tucano.isti.cnr.it with local (Exim 4.98.2) (envelope-from ) id 1u0PRb-0000000ElpD-2mDv for bug-gnu-emacs@gnu.org; Thu, 03 Apr 2025 20:37:39 +0200 From: Francesco =?UTF-8?Q?Potort=C3=AC?= Date: Thu, 03 Apr 2025 20:37:39 +0200 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 Message-Id: X-PPP-Message-ID: <174370545999.497459.10430318190935264956@plesklin7.ehiweb.it> X-PPP-Vhost: potorti.it Received-SPF: pass client-ip=79.98.45.17; envelope-from=pot@potorti.it; helo=plesklin7.ehiweb.it X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Subject: wget: does not fall back ti ipv4 if ipv6 does not work X-Debbugs-CC: Francesco Potort=C3=AC Fcc: ~/Mail/backup/SMAIL =2D-text follows this line-- If a target has both an ipv6 and an ipv4 address, Eww uses ipv6 as usual. = But if ipv6 connectivity is broken, Eww does not fall back to ipv4, while i= t should. Following is an example situation that I can observe here where = Eww fails. eww-retrieve-command is nil $ host aduc.it aduc.it has address 172.67.186.21 aduc.it has address 104.21.84.40 aduc.it has IPv6 address 2606:4700:3033::6815:5428 aduc.it has IPv6 address 2606:4700:3030::ac43:ba15 aduc.it mail is handled by 10 mail.aduc.it. aduc.it has HTTP service bindings 1 . alpn=3D"h3,h2" ipv4hint=3D188.114.96.= 7,188.114.97.7 ech=3DAEX+DQBB+gAgACB68yWanQwvuuMkhtkJKB5NiMnIVzllHE/OmbkjIS= 42JQAEAAEAAQASY2xvdWRmbGFyZS1lY2guY29tAAA=3D ipv6hint=3D2a06:98c1:3120::7,2= a06:98c1:3121::7 $ traceroute 2606:4700:3033::6815:5428 traceroute to 2606:4700:3033::6815:5428 (2606:4700:3033::6815:5428), 30 hop= s max, 80 byte packets 1 2a00:1620:c0:50:fe:: (2a00:1620:c0:50:fe::) 11.378 ms 11.358 ms 11.3= 94 ms 2 2a00:1620:c0:ffff::9230:7f45 (2a00:1620:c0:ffff::9230:7f45) 0.417 ms = 0.451 ms 0.493 ms 3 * * * 4 * * * 5 * * * 6 * * * 7 * * * 8 * C-c C-c From unknown Tue Jun 17 01:43:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#77503: 30.1; eww does not fall back to ipv4 if ipv6 is not working Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Apr 2025 08:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77503 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Francesco =?UTF-8?Q?Potort=C3=AC?= Cc: 77503@debbugs.gnu.org Received: via spool by 77503-submit@debbugs.gnu.org id=B77503.174375363416843 (code B ref 77503); Fri, 04 Apr 2025 08:01:02 +0000 Received: (at 77503) by debbugs.gnu.org; 4 Apr 2025 08:00:34 +0000 Received: from localhost ([127.0.0.1]:36978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u0byb-0004Na-Lr for submit@debbugs.gnu.org; Fri, 04 Apr 2025 04:00:33 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:61870) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1u0byY-0004NK-Nc for 77503@debbugs.gnu.org; Fri, 04 Apr 2025 04:00:31 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-43cf0d787eeso17674935e9.3 for <77503@debbugs.gnu.org>; Fri, 04 Apr 2025 01:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743753622; x=1744358422; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=YVFzVxdVta3fk81GwRwVErJc+hVEtj7KbgZXDtSAemM=; b=ipCkq0NK7WKMbC7Gbe+In0ra904y06IbyWVcw+lEi16nEqhHCzJyWx459iVjldOjpu rsxlznJRQY+7IYKRnpdUtEn4fBETIyxin5PnTHC4fZFjKyF5JffGIakzNkyBNF3IoiHi K9swG8ZBFV+Bi8eG5WmrN6WmzM0Gr2WuK48sjeMiD4sdTTDwTviqfYUmcxR/VVeAL39/ 2c7JyepPvmEfPm5o4cKGDzY277YSVbI8sPCa0XNrwmPlqxV3AW99BtXnWzuLpY8gab9Y 44G4+h7NaURW478bCh0ZO1oUKMYlNBCHPreyVg0c5WTrBjqhzYQjrSVT1CJ42TKts9uk FzGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743753622; x=1744358422; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YVFzVxdVta3fk81GwRwVErJc+hVEtj7KbgZXDtSAemM=; b=H448EwoIZW0brXtFPLovZrx3JQrqSTuRhHeM6U63OoOaLtyR0Ubq2ZAeypS58ayYst FZlYL8yYVh/M0yvv8nsDzF5g1wfrrORJJhUQSgxn9pSCT8WB4LcXZzM1TEfpeOWpoOyw HZnUibzE9D4A9VZcZDevz73FjvxvymYZiprtgbfA+uqmV41PAAx1eI1/YDWLU27SQl8y Sj6O6sIGAcdm+DD9uBbNdz1WdBNinsRBvUH6w2+EpgYQtuf9HdzKa8kv6y1c1zrGk1Sa SjLqfYxq6epqmk1bB/UPbhTP6X6DVqFvchdB5/9k7SCk1XkBzfiJBjBg6obH8lllkBiU QiBg== X-Gm-Message-State: AOJu0YzWztxHjecqYp+q0BzkqKzPjKVyf3H1Q7wK7SwgpLgca04dc32J 9oTVoD6Dcyu+WbEQM+HAK3MScXgLeIQiUlf+W/qGxRPlAzdimS62DO3fiw== X-Gm-Gg: ASbGncu6eVLRCNp4I3Jh/XYPtZpRWSVqOhNrhmd3z5A4nvhbmiKtwIM74z7x6CAC6OT gds7AaHkuy6KsrMkd9BGtfAcS4UQnZ3izeiergWmw7+frfVfNCrrEGdri4nTmTxTgPGur7EqrXS 6T/qgg5nqr9y+zkkZ5DkKWDNeAxOn5KFqJiC7yHcZIvTFzrQiP7LJA6GbrEK7Q5dNFGyrVO+RIl qu9MGiv7Uo1DIcdVOtoNvBfMbv3BOkoncC5Pn5DmpQZ9ZkOw/TZVoVqy2czU6N5aQIixnG6yzGR KVYJ+dU//is2JYGWfyADpikWgcYSfO0= X-Google-Smtp-Source: AGHT+IEYBetJl7tsYOZ40HnVrZ22EbDvqFJ+IMMPzHcBb05K3BwTlTfxV5m5oJvRdVH5d3cre/2JtA== X-Received: by 2002:a05:600c:3596:b0:43c:fe5e:f03b with SMTP id 5b1f17b1804b1-43ed0db35d6mr16187205e9.30.1743753622193; Fri, 04 Apr 2025 01:00:22 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb51:544e:f2f9:7d90:1a3]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec1795630sm43391045e9.29.2025.04.04.01.00.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Apr 2025 01:00:21 -0700 (PDT) From: Robert Pluim In-Reply-To: References: Date: Fri, 04 Apr 2025 10:00:21 +0200 Message-ID: <87o6xcfjai.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 03 Apr 2025 20:37:39 +0200, Francesco Potort=C3=AC said: Francesco> Subject: wget: does not fall back ti ipv4 if ipv6 does not w= ork Francesco> X-Debbugs-CC: Francesco Potort=C3=AC Francesco> Fcc: ~/Mail/backup/SMAIL Francesco> --text follows this line-- Francesco> If a target has both an ipv6 and an ipv4 address, Eww uses i= pv6 as Francesco> usual. But if ipv6 connectivity is broken, Eww does not fal= l back to Francesco> ipv4, while it should. Following is an example situation th= at I can Francesco> observe here where Eww fails. This is a generic problem with all network connection functionality in Emacs. We=CA=BCd need to implement something like Happy Eyeballs (RFC 8305), which would need support from the C core. Robert --=20 From unknown Tue Jun 17 01:43:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#77503: 30.1; eww does not fall back to ipv4 if ipv6 is not working Resent-From: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Apr 2025 08:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77503 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Robert Pluim Cc: 77503@debbugs.gnu.org Received: via spool by 77503-submit@debbugs.gnu.org id=B77503.174375634524443 (code B ref 77503); Fri, 04 Apr 2025 08:46:01 +0000 Received: (at 77503) by debbugs.gnu.org; 4 Apr 2025 08:45:45 +0000 Received: from localhost ([127.0.0.1]:37043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u0cgK-0006MB-M5 for submit@debbugs.gnu.org; Fri, 04 Apr 2025 04:45:44 -0400 Received: from plesklin7.if2.ehiweb.it ([79.98.45.17]:36169 helo=plesklin7.ehiweb.it) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1u0cgH-0006Ly-DD for 77503@debbugs.gnu.org; Fri, 04 Apr 2025 04:45:43 -0400 Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by plesklin7.ehiweb.it (Postfix) with ESMTPSA id D541A1C4D8C; Fri, 4 Apr 2025 10:45:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=potorti.it; s=default; t=1743756339; bh=xowAUTczkJK/QT9EKa1l+xU4Pg4o3QFNKBHzpP6Dof0=; h=Received:From:To:Subject; b=MaUFLJ4lvjGgxrEqXwqK4U+n1akj/4xUc3Pc/LPbW0gqVqvrg/LDWMo7Ewqa25SxH 9b8lYjvjFhSAE/HCxLotwPoCSGo6dvLfIXmQvyB/ARgmMWaA9KM/ALFY5NxC1tEMKe Tx6EgBSHPPyNkLjh1m4YwPIlrQY5e0yW6Q+q6cwM= Authentication-Results: plesklin7.ehiweb.it; spf=pass (sender IP is 146.48.81.102) smtp.mailfrom=pot@potorti.it smtp.helo=tucano.isti.cnr.it Received-SPF: pass (plesklin7.ehiweb.it: connection is authenticated) Received: from pot by tucano.isti.cnr.it with local (Exim 4.98.2) (envelope-from ) id 1u0cgE-0000000GJJF-30OG; Fri, 04 Apr 2025 10:45:38 +0200 From: Francesco =?UTF-8?Q?Potort=C3=AC?= Date: Fri, 04 Apr 2025 10:45:38 +0200 In-Reply-To: <87o6xcfjai.fsf@gmail.com> (rpluim@gmail.com) References: <87o6xcfjai.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 Message-Id: X-PPP-Message-ID: <174375633900.768994.7181792323151787478@plesklin7.ehiweb.it> X-PPP-Vhost: potorti.it X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Francesco> If a target has both an ipv6 and an ipv4 address, Eww uses = ipv6 as > Francesco> usual. But if ipv6 connectivity is broken, Eww does not fa= ll back to > Francesco> ipv4, while it should. Following is an example situation t= hat I can > Francesco> observe here where Eww fails. > >This is a generic problem with all network connection functionality in >Emacs. We=CA=BCd need to implement something like Happy Eyeballs (RFC >8305), which would need support from the C core. Thanks. I've learned something today. I set Eww to use curl as a backend = as a workaround =2D-=20 fp