From unknown Fri Jun 20 18:02:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17976 <17976@debbugs.gnu.org> To: bug#17976 <17976@debbugs.gnu.org> Subject: Status: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 Reply-To: bug#17976 <17976@debbugs.gnu.org> Date: Sat, 21 Jun 2025 01:02:00 +0000 retitle 17976 24.3; url-retrieve-synchronously doesn't fallback to IPv4 reassign 17976 emacs submitter 17976 Juliusz Chroboczek severity 17976 normal tag 17976 confirmed patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 09 08:38:51 2014 Received: (at submit) by debbugs.gnu.org; 9 Jul 2014 12:38:51 +0000 Received: from localhost ([127.0.0.1]:47615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4r98-0000v3-NP for submit@debbugs.gnu.org; Wed, 09 Jul 2014 08:38:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45275) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4r95-0000uo-J8 for submit@debbugs.gnu.org; Wed, 09 Jul 2014 08:38:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4r8t-0004fH-U8 for submit@debbugs.gnu.org; Wed, 09 Jul 2014 08:38:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,NORMAL_HTTP_TO_IP, UNPARSEABLE_RELAY autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4r8t-0004fD-Ql for submit@debbugs.gnu.org; Wed, 09 Jul 2014 08:38:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4r8n-0001TK-7W for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 08:38:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4r8g-0004dd-JQ for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 08:38:28 -0400 Received: from korolev.univ-paris7.fr ([2001:660:3301:8000::1:2]:44200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4r8g-0004dH-AA for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 08:38:22 -0400 Received: from potemkin.univ-paris7.fr (potemkin.univ-paris7.fr [IPv6:2001:660:3301:8000::1:1]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/46573) with ESMTP id s69CcFAS023069 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 9 Jul 2014 14:38:15 +0200 Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by potemkin.univ-paris7.fr (8.14.4/8.14.4/relay2/46573) with ESMTP id s69CcE8v012452 for ; Wed, 9 Jul 2014 14:38:15 +0200 Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id EAD0D2C2191 for ; Wed, 9 Jul 2014 14:38:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id VtBvgGDqENjf for ; Wed, 9 Jul 2014 14:38:10 +0200 (CEST) Received: from ijon.pps.univ-paris-diderot.fr (unknown [78.194.40.74]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id 9627C2C218F for ; Wed, 9 Jul 2014 14:38:10 +0200 (CEST) Received: from jch (uid 1000) (envelope-from jch@pps.univ-paris-diderot.fr) id c00177 by ijon.pps.univ-paris-diderot.fr (DragonFly Mail Agent v0.9); Wed, 09 Jul 2014 14:38:17 +0200 Date: Wed, 09 Jul 2014 14:38:17 +0200 Message-ID: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> From: Juliusz Chroboczek To: bug-gnu-emacs@gnu.org Subject: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 User-Agent: Wanderlust/2.15.9 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]); Wed, 09 Jul 2014 14:38:15 +0200 (CEST) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (potemkin.univ-paris7.fr [194.254.61.141]); Wed, 09 Jul 2014 14:38:15 +0200 (CEST) X-Miltered: at korolev with ID 53BD37B7.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-Miltered: at potemkin with ID 53BD37B6.002 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 53BD37B7.000 from potemkin.univ-paris7.fr/potemkin.univ-paris7.fr/null/potemkin.univ-paris7.fr/ X-j-chkmail-Enveloppe: 53BD37B6.002 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/ X-j-chkmail-Score: MSGID : 53BD37B7.000 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Score: MSGID : 53BD37B6.002 on potemkin.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-j-chkmail-Status: Ham X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) My machine has both IPv6 and IPv4. I'm accessing a server that has both IPv6 and IPv4, but whose web server listens on IPv4 only. The web server is doing the right thing, sending RST upon IPv6 connection attempts. Wget and telnet do the right thing, they fallback to IPv4: $ telnet moule.informatique.univ-paris-diderot.fr 8080 Trying 2001:660:3301:8070::40... Trying 194.254.199.40... Connected to moule.informatique.univ-paris-diderot.fr. Escape character is '^]'. On the other hand, url-retrieve-synchronously returns an empty string. Tcpdump shows that it's never even trying IPv4: (with-current-buffer (url-retrieve-synchronously "http://moule.informatique.univ-paris-diderot.fr:8080") (buffer-substring (point-min) (point-max))) "" (with-current-buffer (url-retrieve-synchronously "http://194.254.199.40:8080") (buffer-substring (point-min) (point-max))) "HTTP/1.1 200 OK ..." From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 09 09:06:43 2014 Received: (at 17976) by debbugs.gnu.org; 9 Jul 2014 13:06:43 +0000 Received: from localhost ([127.0.0.1]:47622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4ra6-0001kg-Bx for submit@debbugs.gnu.org; Wed, 09 Jul 2014 09:06:42 -0400 Received: from cantor2.suse.de ([195.135.220.15]:50001 helo=mx2.suse.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4ra3-0001kV-Pu for 17976@debbugs.gnu.org; Wed, 09 Jul 2014 09:06:40 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 62A8CABF6; Wed, 9 Jul 2014 13:06:38 +0000 (UTC) From: Andreas Schwab To: Juliusz Chroboczek Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> X-Yow: Now KEN is having a MENTAL CRISIS because his "R.V." PAYMENTS are OVER-DUE!! Date: Wed, 09 Jul 2014 15:06:37 +0200 In-Reply-To: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> (Juliusz Chroboczek's message of "Wed, 09 Jul 2014 14:38:17 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.7 (-----) Juliusz Chroboczek writes: > My machine has both IPv6 and IPv4. I'm accessing a server that has both > IPv6 and IPv4, but whose web server listens on IPv4 only. The web server > is doing the right thing, sending RST upon IPv6 connection attempts. Wget > and telnet do the right thing, they fallback to IPv4: > > $ telnet moule.informatique.univ-paris-diderot.fr 8080 > Trying 2001:660:3301:8070::40... > Trying 194.254.199.40... > Connected to moule.informatique.univ-paris-diderot.fr. > Escape character is '^]'. > > On the other hand, url-retrieve-synchronously returns an empty string. > Tcpdump shows that it's never even trying IPv4: > > (with-current-buffer > (url-retrieve-synchronously > "http://moule.informatique.univ-paris-diderot.fr:8080") > (buffer-substring (point-min) (point-max))) > "" I cannot reproduce that here. Emacs is properly falling back to IPv4 and I get the expected contents from this command. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 09 16:25:42 2014 Received: (at 17976) by debbugs.gnu.org; 9 Jul 2014 20:25:42 +0000 Received: from localhost ([127.0.0.1]:48154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4yQv-0001uu-1d for submit@debbugs.gnu.org; Wed, 09 Jul 2014 16:25:41 -0400 Received: from korolev.univ-paris7.fr ([194.254.61.138]:35502) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4yQs-0001uj-01 for 17976@debbugs.gnu.org; Wed, 09 Jul 2014 16:25:39 -0400 Received: from potemkin.univ-paris7.fr (potemkin.univ-paris7.fr [IPv6:2001:660:3301:8000::1:1]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/46573) with ESMTP id s69KPaRP003584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <17976@debbugs.gnu.org>; Wed, 9 Jul 2014 22:25:36 +0200 Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by potemkin.univ-paris7.fr (8.14.4/8.14.4/relay2/46573) with ESMTP id s69KPaU7019254 for <17976@debbugs.gnu.org>; Wed, 9 Jul 2014 22:25:36 +0200 Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id 8AFCC2C21EB for <17976@debbugs.gnu.org>; Wed, 9 Jul 2014 22:25:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id UGVETHs6YsQy for <17976@debbugs.gnu.org>; Wed, 9 Jul 2014 22:25:35 +0200 (CEST) Received: from ijon.pps.univ-paris-diderot.fr (unknown [78.194.40.74]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id 864572C21E8 for <17976@debbugs.gnu.org>; Wed, 9 Jul 2014 22:25:35 +0200 (CEST) Received: from jch (uid 1000) (envelope-from jch@pps.univ-paris-diderot.fr) id c001a9 by ijon.pps.univ-paris-diderot.fr (DragonFly Mail Agent v0.9); Wed, 09 Jul 2014 22:25:42 +0200 Date: Wed, 09 Jul 2014 22:25:41 +0200 Message-ID: <87fvianut6.wl-jch@pps.univ-paris-diderot.fr> From: Juliusz Chroboczek To: Andreas Schwab Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 In-Reply-To: References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> User-Agent: Wanderlust/2.15.9 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]); Wed, 09 Jul 2014 22:25:36 +0200 (CEST) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (potemkin.univ-paris7.fr [194.254.61.141]); Wed, 09 Jul 2014 22:25:36 +0200 (CEST) X-Miltered: at korolev with ID 53BDA540.002 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-Miltered: at potemkin with ID 53BDA540.001 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 53BDA540.002 from potemkin.univ-paris7.fr/potemkin.univ-paris7.fr/null/potemkin.univ-paris7.fr/ X-j-chkmail-Enveloppe: 53BDA540.001 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/ X-j-chkmail-Score: MSGID : 53BDA540.002 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Score: MSGID : 53BDA540.001 on potemkin.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-j-chkmail-Status: Ham X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) Andreas Schwab wrote: > I cannot reproduce that here. Strange. I've just reproduced this with a recent Emacs-24 (dated 5 July 2014). > Emacs is properly falling back to IPv4 Have you confirmed that you're getting an RST and falling back to IPv4? -- Juliusz From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 10 03:17:21 2014 Received: (at 17976) by debbugs.gnu.org; 10 Jul 2014 07:17:21 +0000 Received: from localhost ([127.0.0.1]:51642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X58bZ-0006X2-1K for submit@debbugs.gnu.org; Thu, 10 Jul 2014 03:17:21 -0400 Received: from cantor2.suse.de ([195.135.220.15]:35502 helo=mx2.suse.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X58bW-0006Ws-6r for 17976@debbugs.gnu.org; Thu, 10 Jul 2014 03:17:19 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 26790ACE7; Thu, 10 Jul 2014 07:17:17 +0000 (UTC) From: Andreas Schwab To: Juliusz Chroboczek Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> <87fvianut6.wl-jch@pps.univ-paris-diderot.fr> X-Yow: With YOU, I can be MYSELF.. We don't NEED Dan Rather.. Date: Thu, 10 Jul 2014 09:17:16 +0200 In-Reply-To: <87fvianut6.wl-jch@pps.univ-paris-diderot.fr> (Juliusz Chroboczek's message of "Wed, 09 Jul 2014 22:25:41 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.7 (-----) Juliusz Chroboczek writes: > Have you confirmed that you're getting an RST and falling back to IPv4? Yes, sure. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 10 16:28:48 2014 Received: (at 17976) by debbugs.gnu.org; 10 Jul 2014 20:28:48 +0000 Received: from localhost ([127.0.0.1]:52593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5KxP-0000Jy-Ov for submit@debbugs.gnu.org; Thu, 10 Jul 2014 16:28:48 -0400 Received: from korolev.univ-paris7.fr ([194.254.61.138]:38030) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5KxI-0000Jb-Bd for 17976@debbugs.gnu.org; Thu, 10 Jul 2014 16:28:41 -0400 Received: from potemkin.univ-paris7.fr (potemkin.univ-paris7.fr [IPv6:2001:660:3301:8000::1:1]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/46573) with ESMTP id s6AKST1b025490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <17976@debbugs.gnu.org>; Thu, 10 Jul 2014 22:28:29 +0200 Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by potemkin.univ-paris7.fr (8.14.4/8.14.4/relay2/46573) with ESMTP id s6AKSTGc022452 for <17976@debbugs.gnu.org>; Thu, 10 Jul 2014 22:28:29 +0200 Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id 256A82C2FAA for <17976@debbugs.gnu.org>; Thu, 10 Jul 2014 22:28:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id QvFmVWJxXtld for <17976@debbugs.gnu.org>; Thu, 10 Jul 2014 22:28:28 +0200 (CEST) Received: from ijon.pps.univ-paris-diderot.fr (unknown [78.194.40.74]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id 12C162C2F92 for <17976@debbugs.gnu.org>; Thu, 10 Jul 2014 22:28:28 +0200 (CEST) Received: from jch (uid 1000) (envelope-from jch@pps.univ-paris-diderot.fr) id c002ac by ijon.pps.univ-paris-diderot.fr (DragonFly Mail Agent v0.9); Thu, 10 Jul 2014 22:28:37 +0200 Date: Thu, 10 Jul 2014 22:28:37 +0200 Message-ID: <87mwchargq.wl-jch@pps.univ-paris-diderot.fr> From: Juliusz Chroboczek To: Andreas Schwab Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 In-Reply-To: References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> <87fvianut6.wl-jch@pps.univ-paris-diderot.fr> User-Agent: Wanderlust/2.15.9 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]); Thu, 10 Jul 2014 22:28:29 +0200 (CEST) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (potemkin.univ-paris7.fr [194.254.61.141]); Thu, 10 Jul 2014 22:28:29 +0200 (CEST) X-Miltered: at korolev with ID 53BEF76D.002 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-Miltered: at potemkin with ID 53BEF76D.001 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 53BEF76D.002 from potemkin.univ-paris7.fr/potemkin.univ-paris7.fr/null/potemkin.univ-paris7.fr/ X-j-chkmail-Enveloppe: 53BEF76D.001 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/ X-j-chkmail-Score: MSGID : 53BEF76D.002 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Score: MSGID : 53BEF76D.001 on potemkin.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-j-chkmail-Status: Ham X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) The following patch works around the issue for me, so it could be a timing-dependent problem: --- url-gw.el.orig 2014-07-10 22:26:05.087977204 +0200 +++ url-gw.el 2014-07-10 22:25:32.972959153 +0200 @@ -240,8 +240,7 @@ name buffer host service :type gw-method ;; Use non-blocking socket if we can. - :nowait (featurep 'make-network-process - '(:nowait t)))) + :nowait nil)) (`socks (socks-open-network-stream name buffer host service)) (`telnet From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 10 16:54:19 2014 Received: (at 17976) by debbugs.gnu.org; 10 Jul 2014 20:54:19 +0000 Received: from localhost ([127.0.0.1]:52608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5LM6-0001AB-Tn for submit@debbugs.gnu.org; Thu, 10 Jul 2014 16:54:19 -0400 Received: from korolev.univ-paris7.fr ([194.254.61.138]:40453) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5LLz-00019t-QC for 17976@debbugs.gnu.org; Thu, 10 Jul 2014 16:54:12 -0400 Received: from potemkin.univ-paris7.fr (potemkin.univ-paris7.fr [IPv6:2001:660:3301:8000::1:1]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/46573) with ESMTP id s6AKs6BD000485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <17976@debbugs.gnu.org>; Thu, 10 Jul 2014 22:54:06 +0200 Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by potemkin.univ-paris7.fr (8.14.4/8.14.4/relay2/46573) with ESMTP id s6AKs66Q029324 for <17976@debbugs.gnu.org>; Thu, 10 Jul 2014 22:54:06 +0200 Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id 6D2662C2FAD for <17976@debbugs.gnu.org>; Thu, 10 Jul 2014 22:54:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id mNZC7nP3PB3s for <17976@debbugs.gnu.org>; Thu, 10 Jul 2014 22:54:05 +0200 (CEST) Received: from ijon.pps.univ-paris-diderot.fr (unknown [78.194.40.74]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id 5D44F2C2FAC for <17976@debbugs.gnu.org>; Thu, 10 Jul 2014 22:54:05 +0200 (CEST) Received: from jch (uid 1000) (envelope-from jch@pps.univ-paris-diderot.fr) id c002ac by ijon.pps.univ-paris-diderot.fr (DragonFly Mail Agent v0.9); Thu, 10 Jul 2014 22:54:14 +0200 Date: Thu, 10 Jul 2014 22:54:14 +0200 Message-ID: <87lhs1aqa1.wl-jch@pps.univ-paris-diderot.fr> From: Juliusz Chroboczek To: Andreas Schwab Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 In-Reply-To: References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> <87fvianut6.wl-jch@pps.univ-paris-diderot.fr> User-Agent: Wanderlust/2.15.9 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]); Thu, 10 Jul 2014 22:54:06 +0200 (CEST) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (potemkin.univ-paris7.fr [194.254.61.141]); Thu, 10 Jul 2014 22:54:06 +0200 (CEST) X-Miltered: at korolev with ID 53BEFD6E.001 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-Miltered: at potemkin with ID 53BEFD6E.001 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 53BEFD6E.001 from potemkin.univ-paris7.fr/potemkin.univ-paris7.fr/null/potemkin.univ-paris7.fr/ X-j-chkmail-Enveloppe: 53BEFD6E.001 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/ X-j-chkmail-Score: MSGID : 53BEFD6E.001 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Score: MSGID : 53BEFD6E.001 on potemkin.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-j-chkmail-Status: Ham X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) Here's a trace (edited to remove irrelevant stuff). I'm only guessing, but to my untrained eyes it looks like the code around process.c:4920. -- Juliusz socket(PF_INET6, SOCK_STREAM, IPPROTO_TCP) = 13 fcntl(13, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 connect(13, {sa_family=AF_INET6, sin6_port=htons(8080), inet_pton(AF_INET6, "2001:660:3301:8070::40", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EINPROGRESS (Operation now in progress) getsockname(13, {sa_family=AF_INET6, sin6_port=htons(33826), inet_pton(AF_INET6, "2a01:e34:ec22:84a0::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0 fcntl(13, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 pselect6(14, [12], [13], NULL, {1957, 16494001}, {NULL, 8}) = 1 (out [13], left {1957, 10004292}) getsockopt(13, SOL_SOCKET, SO_ERROR, [111], [4]) = 0 close(13) = 0 From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 11 08:22:08 2014 Received: (at 17976) by debbugs.gnu.org; 11 Jul 2014 12:22:08 +0000 Received: from localhost ([127.0.0.1]:53087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5Zpz-0005aZ-V6 for submit@debbugs.gnu.org; Fri, 11 Jul 2014 08:22:08 -0400 Received: from cantor2.suse.de ([195.135.220.15]:60286 helo=mx2.suse.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5Zpu-0005a6-C7 for 17976@debbugs.gnu.org; Fri, 11 Jul 2014 08:22:02 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 658B3ACC2; Fri, 11 Jul 2014 12:21:57 +0000 (UTC) From: Andreas Schwab To: Juliusz Chroboczek Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> <87fvianut6.wl-jch@pps.univ-paris-diderot.fr> X-Yow: What PROGRAM are they watching? Date: Fri, 11 Jul 2014 14:21:56 +0200 In-Reply-To: <87fvianut6.wl-jch@pps.univ-paris-diderot.fr> (Juliusz Chroboczek's message of "Wed, 09 Jul 2014 22:25:41 +0200") Message-ID: <87pphc5bmj.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.7 (-----) Juliusz Chroboczek writes: > Andreas Schwab wrote: > >> I cannot reproduce that here. > > Strange. I've just reproduced this with a recent Emacs-24 (dated 5 July 2014). I can as well, after disabling the proxy services. Sorry. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 11 11:49:07 2014 Received: (at control) by debbugs.gnu.org; 11 Jul 2014 15:49:07 +0000 Received: from localhost ([127.0.0.1]:53652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5d4I-0003np-Kd for submit@debbugs.gnu.org; Fri, 11 Jul 2014 11:49:07 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:34018 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5d4C-0003nI-HJ for control@debbugs.gnu.org; Fri, 11 Jul 2014 11:49:01 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1X5d4C-0000IL-6F for control@debbugs.gnu.org; Fri, 11 Jul 2014 11:48:56 -0400 Date: Fri, 11 Jul 2014 11:48:56 -0400 Message-Id: Subject: control message for bug 17976 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.7 (-----) tag 17976 confirmed From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 12 13:01:20 2015 Received: (at control) by debbugs.gnu.org; 12 Mar 2015 17:01:20 +0000 Received: from localhost ([127.0.0.1]:44176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YW6U3-0004O0-V7 for submit@debbugs.gnu.org; Thu, 12 Mar 2015 13:01:20 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:39631 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YW6U2-0004ME-2Y for control@debbugs.gnu.org; Thu, 12 Mar 2015 13:01:18 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YW6U1-0000RD-OP for control@debbugs.gnu.org; Thu, 12 Mar 2015 13:01:17 -0400 Date: Thu, 12 Mar 2015 13:01:17 -0400 Message-Id: Subject: control message for bug 19759 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) block 19759 by 17976 From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 25 15:34:21 2015 Received: (at 17976) by debbugs.gnu.org; 25 Dec 2015 20:34:21 +0000 Received: from localhost ([127.0.0.1]:35454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZ48-0004JG-Kb for submit@debbugs.gnu.org; Fri, 25 Dec 2015 15:34:20 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:48125) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZ46-0004J7-F0 for 17976@debbugs.gnu.org; Fri, 25 Dec 2015 15:34:18 -0500 Received: from 2.150.58.24.tmi.telenormobil.no ([2.150.58.24] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aCZ3k-00041P-TL; Fri, 25 Dec 2015 21:33:57 +0100 From: Lars Ingebrigtsen To: Juliusz Chroboczek Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> Date: Fri, 25 Dec 2015 21:33:56 +0100 In-Reply-To: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> (Juliusz Chroboczek's message of "Wed, 09 Jul 2014 14:38:17 +0200") Message-ID: <87poxu2rpn.fsf@gnus.org> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1aCZ3k-00041P-TL X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1451680437.27584@0vETYZHSvncUgbmd1e4SJg X-Spam-Status: No X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org 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: -0.7 (/) Juliusz Chroboczek writes: > My machine has both IPv6 and IPv4. I'm accessing a server that has both > IPv6 and IPv4, but whose web server listens on IPv4 only. The web server > is doing the right thing, sending RST upon IPv6 connection attempts. Wget > and telnet do the right thing, they fallback to IPv4: > > $ telnet moule.informatique.univ-paris-diderot.fr 8080 > Trying 2001:660:3301:8070::40... > Trying 194.254.199.40... > Connected to moule.informatique.univ-paris-diderot.fr. > Escape character is '^]'. Perhaps this should be a general network connection thing? I know nothing about IPv6, though. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 25 15:42:57 2015 Received: (at 17976) by debbugs.gnu.org; 25 Dec 2015 20:42:57 +0000 Received: from localhost ([127.0.0.1]:35477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZCP-0004X4-Lk for submit@debbugs.gnu.org; Fri, 25 Dec 2015 15:42:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53918) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZCN-0004Wo-OJ for 17976@debbugs.gnu.org; Fri, 25 Dec 2015 15:42:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCZCD-0007VB-OU for 17976@debbugs.gnu.org; Fri, 25 Dec 2015 15:42:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCZCD-0007V7-LG; Fri, 25 Dec 2015 15:42:41 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4031 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aCZCC-0007AP-Up; Fri, 25 Dec 2015 15:42:41 -0500 Date: Fri, 25 Dec 2015 22:43:24 +0200 Message-Id: <83si2qjm37.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: <87poxu2rpn.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 25 Dec 2015 21:33:56 +0100) Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> <87poxu2rpn.fsf@gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org, jch@pps.univ-paris-diderot.fr 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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Lars Ingebrigtsen > Date: Fri, 25 Dec 2015 21:33:56 +0100 > Cc: 17976@debbugs.gnu.org > > Juliusz Chroboczek writes: > > > My machine has both IPv6 and IPv4. I'm accessing a server that has both > > IPv6 and IPv4, but whose web server listens on IPv4 only. The web server > > is doing the right thing, sending RST upon IPv6 connection attempts. Wget > > and telnet do the right thing, they fallback to IPv4: > > > > $ telnet moule.informatique.univ-paris-diderot.fr 8080 > > Trying 2001:660:3301:8070::40... > > Trying 194.254.199.40... > > Connected to moule.informatique.univ-paris-diderot.fr. > > Escape character is '^]'. > > Perhaps this should be a general network connection thing? If by "general network connection" you mean on the C level in process.c, then no, I don't think so. Protocol-specific code is not there, it's above that in Lisp. IMO, url*.el is where this should be handled. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 25 15:49:20 2015 Received: (at 17976) by debbugs.gnu.org; 25 Dec 2015 20:49:21 +0000 Received: from localhost ([127.0.0.1]:35506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZIe-0004ji-NZ for submit@debbugs.gnu.org; Fri, 25 Dec 2015 15:49:20 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:44309) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZId-0004jb-5h for 17976@debbugs.gnu.org; Fri, 25 Dec 2015 15:49:19 -0500 Received: from 2.150.58.24.tmi.telenormobil.no ([2.150.58.24] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aCZII-0004Ff-1i; Fri, 25 Dec 2015 21:48:58 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> <87poxu2rpn.fsf@gnus.org> <83si2qjm37.fsf@gnu.org> Date: Fri, 25 Dec 2015 21:48:57 +0100 In-Reply-To: <83si2qjm37.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 Dec 2015 22:43:24 +0200") Message-ID: <87twn61cg6.fsf@gnus.org> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1aCZII-0004Ff-1i X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1451681338.36839@tuX/pGhTYG8pP2y1RZw9eg X-Spam-Status: No X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org, jch@pps.univ-paris-diderot.fr 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: -0.7 (/) Eli Zaretskii writes: > If by "general network connection" you mean on the C level in > process.c, then no, I don't think so. Protocol-specific code is not > there, it's above that in Lisp. IMO, url*.el is where this should be > handled. I meant in `open-network-stream', so between the C layer and url*.el. This is probably as relevant for, say, IMAP as it is for HTTP, I would guess? But I've never used IPv6. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 25 16:00:57 2015 Received: (at 17976) by debbugs.gnu.org; 25 Dec 2015 21:00:57 +0000 Received: from localhost ([127.0.0.1]:35526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZTs-00061Q-2A for submit@debbugs.gnu.org; Fri, 25 Dec 2015 16:00:57 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:53015) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZTn-0005uS-7V for 17976@debbugs.gnu.org; Fri, 25 Dec 2015 16:00:54 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3pS0zj27hrz3hjTm; Fri, 25 Dec 2015 22:00:49 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3pS0zj0Nqszvh2K; Fri, 25 Dec 2015 22:00:49 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id gyaeyrTlH5g4; Fri, 25 Dec 2015 22:00:47 +0100 (CET) X-Auth-Info: 09LqTavEu8lQt4kYrVd/eHtZuj278cyG2tiPS28+ER8wJysLR93O2R1PpgMYu+6k Received: from linux.local (p4FE4C9AA.dip0.t-ipconnect.de [79.228.201.170]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 25 Dec 2015 22:00:47 +0100 (CET) Received: by linux.local (Postfix, from userid 501) id BC5301E539F; Fri, 25 Dec 2015 22:00:42 +0100 (CET) From: Andreas Schwab To: Lars Ingebrigtsen Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> <87poxu2rpn.fsf@gnus.org> X-Yow: I pretend I'm living in a styrofoam packing crate, high in th' SWISS ALPS, still unable to accept th' idea of TOUCH-TONE DIALING!! Date: Fri, 25 Dec 2015 22:00:42 +0100 In-Reply-To: <87poxu2rpn.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 25 Dec 2015 21:33:56 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org, Juliusz Chroboczek 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: -0.7 (/) Lars Ingebrigtsen writes: > Juliusz Chroboczek writes: > >> My machine has both IPv6 and IPv4. I'm accessing a server that has both >> IPv6 and IPv4, but whose web server listens on IPv4 only. The web server >> is doing the right thing, sending RST upon IPv6 connection attempts. Wget >> and telnet do the right thing, they fallback to IPv4: >> >> $ telnet moule.informatique.univ-paris-diderot.fr 8080 >> Trying 2001:660:3301:8070::40... >> Trying 194.254.199.40... >> Connected to moule.informatique.univ-paris-diderot.fr. >> Escape character is '^]'. > > Perhaps this should be a general network connection thing? It needs to be fixed in open-network-stream. Currently it doesn't provide a way to fall back to a different address of a given host. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 25 16:14:53 2015 Received: (at 17976) by debbugs.gnu.org; 25 Dec 2015 21:14:53 +0000 Received: from localhost ([127.0.0.1]:35555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZhM-00071q-7W for submit@debbugs.gnu.org; Fri, 25 Dec 2015 16:14:53 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:34141) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZhG-00071Z-UF for 17976@debbugs.gnu.org; Fri, 25 Dec 2015 16:14:50 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3pS1Hl4dZvz3hkNX; Fri, 25 Dec 2015 22:14:43 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3pS1Hl1Nm6zvh2N; Fri, 25 Dec 2015 22:14:43 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 82UyRgDRIBkU; Fri, 25 Dec 2015 22:14:38 +0100 (CET) X-Auth-Info: Cjp5WY3MyF5lXI3Qj8lMOTr1JgEqFCHINLFX7wA1HK9bhsVpURg1YTLl8baFk6Ud Received: from linux.local (p4FE4C9AA.dip0.t-ipconnect.de [79.228.201.170]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 25 Dec 2015 22:14:38 +0100 (CET) Received: by linux.local (Postfix, from userid 501) id 1F22E1E539F; Fri, 25 Dec 2015 22:14:38 +0100 (CET) From: Andreas Schwab To: Lars Ingebrigtsen Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> <87poxu2rpn.fsf@gnus.org> <83si2qjm37.fsf@gnu.org> <87twn61cg6.fsf@gnus.org> X-Yow: .. I feel.. JUGULAR.. Date: Fri, 25 Dec 2015 22:14:37 +0100 In-Reply-To: <87twn61cg6.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 25 Dec 2015 21:48:57 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org, Eli Zaretskii , jch@pps.univ-paris-diderot.fr 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: -0.7 (/) Lars Ingebrigtsen writes: > But I've never used IPv6. This is independent of IPv6. A hostname could also resolve to multiple IPv4 addresses where only one of them is (currently) reachable. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 25 16:24:20 2015 Received: (at 17976) by debbugs.gnu.org; 25 Dec 2015 21:24:20 +0000 Received: from localhost ([127.0.0.1]:35575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZqW-0000V4-En for submit@debbugs.gnu.org; Fri, 25 Dec 2015 16:24:20 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:33871) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCZqV-0000Ux-91 for 17976@debbugs.gnu.org; Fri, 25 Dec 2015 16:24:19 -0500 Received: from 2.150.58.24.tmi.telenormobil.no ([2.150.58.24] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aCZq8-0004gH-Pl; Fri, 25 Dec 2015 22:23:56 +0100 From: Lars Ingebrigtsen To: Andreas Schwab Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> <87poxu2rpn.fsf@gnus.org> <83si2qjm37.fsf@gnu.org> <87twn61cg6.fsf@gnus.org> Date: Fri, 25 Dec 2015 22:23:56 +0100 In-Reply-To: (Andreas Schwab's message of "Fri, 25 Dec 2015 22:14:37 +0100") Message-ID: <87twn6z0gj.fsf@gnus.org> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1aCZq8-0004gH-Pl X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1451683438.57422@9utlZzX4Zaorfh26wUYIYA X-Spam-Status: No X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org, Eli Zaretskii , jch@pps.univ-paris-diderot.fr 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: -0.7 (/) Andreas Schwab writes: > This is independent of IPv6. A hostname could also resolve to multiple > IPv4 addresses where only one of them is (currently) reachable. Yeah, that's true. Emacs should reconnect anyway. But how does this work in practice? How are we doing name resolution? Do we have access to all the IP addresses? Do we have access to the IPv6 addresses without... doing stuff? :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 25 16:44:14 2015 Received: (at 17976) by debbugs.gnu.org; 25 Dec 2015 21:44:14 +0000 Received: from localhost ([127.0.0.1]:35607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCa9l-0002e8-9n for submit@debbugs.gnu.org; Fri, 25 Dec 2015 16:44:14 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:46558) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCa9g-0002du-6h for 17976@debbugs.gnu.org; Fri, 25 Dec 2015 16:44:11 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3pS1xg3Szvz3hjTx; Fri, 25 Dec 2015 22:44:07 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3pS1xg2HF7zvh2K; Fri, 25 Dec 2015 22:44:07 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id CJQzqXQ1BMUW; Fri, 25 Dec 2015 22:44:06 +0100 (CET) X-Auth-Info: DzKTFRj5tJV4MJWxxK2OC++ccv9xW/Yfz7rUHs4R26Cqi81/dCfxwR2EtpSp9Wxp Received: from linux.local (p4FE4C9AA.dip0.t-ipconnect.de [79.228.201.170]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 25 Dec 2015 22:44:06 +0100 (CET) Received: by linux.local (Postfix, from userid 501) id 2966D1E539F; Fri, 25 Dec 2015 22:44:05 +0100 (CET) From: Andreas Schwab To: Lars Ingebrigtsen Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> <87poxu2rpn.fsf@gnus.org> <83si2qjm37.fsf@gnu.org> <87twn61cg6.fsf@gnus.org> <87twn6z0gj.fsf@gnus.org> X-Yow: I am having a pleasant time!! Date: Fri, 25 Dec 2015 22:44:04 +0100 In-Reply-To: <87twn6z0gj.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 25 Dec 2015 22:23:56 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org, Eli Zaretskii , jch@pps.univ-paris-diderot.fr 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: -0.7 (/) Lars Ingebrigtsen writes: > Do we have access to all the IP addresses? getaddrinfo gets them all. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 25 18:15:49 2015 Received: (at 17976) by debbugs.gnu.org; 25 Dec 2015 23:15:49 +0000 Received: from localhost ([127.0.0.1]:36024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCbaP-000626-G1 for submit@debbugs.gnu.org; Fri, 25 Dec 2015 18:15:49 -0500 Received: from korolev.univ-paris7.fr ([194.254.61.138]:47493) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCbaO-000606-AX for 17976@debbugs.gnu.org; Fri, 25 Dec 2015 18:15:48 -0500 Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/56228) with ESMTP id tBPNFjSK014105; Sat, 26 Dec 2015 00:15:46 +0100 Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id 73CF861FA2; Sat, 26 Dec 2015 00:15:45 +0100 (CET) X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id iFMld4V6NZVX; Sat, 26 Dec 2015 00:15:44 +0100 (CET) Received: from ijon.pps.univ-paris-diderot.fr (dra38-1-82-225-44-56.fbx.proxad.net [82.225.44.56]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id A9DC361FA1; Sat, 26 Dec 2015 00:15:43 +0100 (CET) Date: Sat, 26 Dec 2015 00:15:44 +0100 Message-ID: <87io3m9l27.wl-jch@pps.univ-paris-diderot.fr> From: Juliusz Chroboczek To: Lars Ingebrigtsen Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 In-Reply-To: <87twn6z0gj.fsf@gnus.org> References: <878uo2ogg6.wl-jch@pps.univ-paris-diderot.fr> <87poxu2rpn.fsf@gnus.org> <83si2qjm37.fsf@gnu.org> <87twn61cg6.fsf@gnus.org> <87twn6z0gj.fsf@gnus.org> User-Agent: Wanderlust/2.15.9 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [194.254.61.138]); Sat, 26 Dec 2015 00:15:47 +0100 (CET) X-Miltered: at korolev with ID 567DCE21.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 567DCE21.000 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/ X-j-chkmail-Score: MSGID : 567DCE21.000 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org, Eli Zaretskii , Andreas Schwab 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: -0.7 (/) >> This is independent of IPv6. A hostname could also resolve to multiple >> IPv4 addresses where only one of them is (currently) reachable. Please hear this man. > But how does this work in practice? How are we doing name resolution? > Do we have access to all the IP addresses? Do we have access to the > IPv6 addresses without... doing stuff? :-) If we don't, it's a bug that must be fixed. The multihoming techniques that are being developed at IETF right now rely on giving multiple addresses to a single host (and implementing a routing infrastructure to match), we really need to be trying them all. -- Juliusz From debbugs-submit-bounces@debbugs.gnu.org Sun May 22 12:35:35 2016 Received: (at control) by debbugs.gnu.org; 22 May 2016 16:35:35 +0000 Received: from localhost ([127.0.0.1]:32980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b4WLn-00007y-Mu for submit@debbugs.gnu.org; Sun, 22 May 2016 12:35:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b4WLm-00007l-46 for control@debbugs.gnu.org; Sun, 22 May 2016 12:35:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b4WLc-00083X-6U for control@debbugs.gnu.org; Sun, 22 May 2016 12:35:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4WLc-000824-25 for control@debbugs.gnu.org; Sun, 22 May 2016 12:35:24 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2342 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b4WLa-0003Ob-61 for control@debbugs.gnu.org; Sun, 22 May 2016 12:35:22 -0400 Date: Sun, 22 May 2016 19:35:19 +0300 Message-Id: <8337pa6ofs.fsf@gnu.org> From: Eli Zaretskii To: control@debbugs.gnu.org Subject: Unblock X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control 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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) unblock 19759 by 17976 unblock 19759 by 19548 unblock 19759 by 21182 unblock 19759 by 21650 unblock 19759 by 21871 unblock 19759 by 21874 unblock 19759 by 22107 unblock 19759 by 22147 unblock 19759 by 22338 thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 01 15:07:43 2016 Received: (at control) by debbugs.gnu.org; 1 Jun 2016 19:07:43 +0000 Received: from localhost ([127.0.0.1]:50167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8BUV-00056l-4W for submit@debbugs.gnu.org; Wed, 01 Jun 2016 15:07:43 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:57256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8BUT-00056W-Cm for control@debbugs.gnu.org; Wed, 01 Jun 2016 15:07:41 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 25AB81613C1 for ; Wed, 1 Jun 2016 12:07:35 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 9sFLLeeiBhaq for ; Wed, 1 Jun 2016 12:07:33 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B98641613BB for ; Wed, 1 Jun 2016 12:07:33 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9fUeyHE6nXPT for ; Wed, 1 Jun 2016 12:07:33 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id A42E51613C6 for ; Wed, 1 Jun 2016 12:07:33 -0700 (PDT) To: control@debbugs.gnu.org From: Paul Eggert Subject: 23620 is a duplicate of 17976 Organization: UCLA Computer Science Department Message-ID: <81a0f08d-ffd8-28ea-f38b-1dc84852238e@cs.ucla.edu> Date: Wed, 1 Jun 2016 12:07:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: control 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.4 (-) merge 17976 23620 thanks See: http://bugs.gnu.org/23620#17 From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 12 14:36:58 2016 Received: (at 17976) by debbugs.gnu.org; 12 Jun 2016 18:36:58 +0000 Received: from localhost ([127.0.0.1]:38254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCAFm-0002HR-9Z for submit@debbugs.gnu.org; Sun, 12 Jun 2016 14:36:58 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCAFh-0002HB-RO for 17976@debbugs.gnu.org; Sun, 12 Jun 2016 14:36:57 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 015311613E5; Sun, 12 Jun 2016 11:36:48 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id l4k8oxL2VSrd; Sun, 12 Jun 2016 11:36:47 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E9CD11613EC; Sun, 12 Jun 2016 11:36:46 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id q4iWpLhGdoUJ; Sun, 12 Jun 2016 11:36:46 -0700 (PDT) Received: from [192.168.1.9] (unknown [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id BD08C1613E5; Sun, 12 Jun 2016 11:36:46 -0700 (PDT) To: Juliusz Chroboczek From: Paul Eggert Subject: Re: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 Organization: UCLA Computer Science Department Message-ID: <575DABBB.4060908@cs.ucla.edu> Date: Sun, 12 Jun 2016 11:36:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050208000509010000050807" X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 17976 Cc: 17976@debbugs.gnu.org, Lars Ingebrigtsen , Eli Zaretskii , Artur Malabarba , Andreas Schwab 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.4 (-) This is a multi-part message in MIME format. --------------050208000509010000050807 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable I reproduced this bug in a test Fedora 23 environment where attempting to= =20 connect to one address failed (connection refused). The attached patch to= Emacs=20 master causes Emacs to try addresses addresses until one succeeds. Does t= his fix=20 your problem? I suspect the code should check for error codes other than=20 ECONNREFUSED, but I don't know what the list of such codes should be. --------------050208000509010000050807 Content-Type: text/x-diff; name="0001-Try-other-addresses-when-connecting-to-multihomed.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename*0="0001-Try-other-addresses-when-connecting-to-multihomed.patch" =46rom 958a23698c9f1b9b804aa79d410b11b07998b223 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 12 Jun 2016 11:08:41 -0700 Subject: [PATCH] Try other addresses when connecting to multihomed * src/process.c (decode_status, Fmake_network_process): Support (connect . ADDRINFOS) status. (connecting): New function, to support (connect . ADDRINFOS). (connect_network_socket, check_for_dns, wait_for_socket_fds) (wait_while_connecting, wait_reading_process_output, status_notify): Use it. (connect_network_socket) [!WINDOWSNT]: If the connection failed with ECONNREFUSED and there are other addresses to try, do not signal an error; instead, loop around to try the next address. (wait_reading_process_output): Advance to the next address if there are multiple addresses and the first remaining address failed. * src/process.h (struct Lisp_Process.status): Adjust comment to describe (connect . ADDRINFOS). --- src/process.c | 45 ++++++++++++++++++++++++++++++++------------- src/process.h | 4 +++- 2 files changed, 35 insertions(+), 14 deletions(-) diff --git a/src/process.c b/src/process.c index e669278..a72bf20 100644 --- a/src/process.c +++ b/src/process.c @@ -542,6 +542,9 @@ decode_status (Lisp_Object l, Lisp_Object *symbol, Li= sp_Object *code, { Lisp_Object tem; =20 + if (CONSP (l) && EQ (XCAR (l), Qconnect)) + l =3D XCAR (l); + if (SYMBOLP (l)) { *symbol =3D l; @@ -3106,6 +3109,12 @@ finish_after_tls_connection (Lisp_Object proc) } #endif =20 +static bool +connecting (struct Lisp_Process *p) +{ + return CONSP (p->status) && EQ (XCAR (p->status), Qconnect); +} + static void connect_network_socket (Lisp_Object proc, Lisp_Object addrinfos, Lisp_Object use_external_socket_p) @@ -3288,9 +3297,10 @@ connect_network_socket (Lisp_Object proc, Lisp_Obj= ect addrinfos, eassert (FD_ISSET (s, &fdset)); if (getsockopt (s, SOL_SOCKET, SO_ERROR, &xerrno, &len) < 0) report_file_error ("Failed getsockopt", Qnil); - if (xerrno) + if (xerrno =3D=3D 0) + break; + if (xerrno !=3D ECONNREFUSED || NILP (addrinfos)) report_file_errno ("Failed connect", Qnil, xerrno); - break; } #endif /* !WINDOWSNT */ =20 @@ -3399,7 +3409,8 @@ connect_network_socket (Lisp_Object proc, Lisp_Obje= ct addrinfos, /* We may get here if connect did succeed immediately. However, in that case, we still need to signal this like a non-blocking connection. */ - pset_status (p, Qconnect); + if (! (connecting (p) && EQ (XCDR (p->status), addrinfos))) + pset_status (p, Fcons (Qconnect, addrinfos)); if (!FD_ISSET (inch, &connect_wait_mask)) { FD_SET (inch, &connect_wait_mask); @@ -3960,7 +3971,7 @@ usage: (make-network-process &rest ARGS) */) if (!p->is_server && NILP (addrinfos)) { p->dns_request =3D dns_request; - p->status =3D Qconnect; + p->status =3D list1 (Qconnect); return proc; } #endif @@ -4673,7 +4684,7 @@ check_for_dns (Lisp_Object proc) addrinfos =3D Fnreverse (addrinfos); } /* The DNS lookup failed. */ - else if (EQ (p->status, Qconnect)) + else if (connecting (p)) { deactivate_process (proc); pset_status (p, (list2 @@ -4686,7 +4697,7 @@ check_for_dns (Lisp_Object proc) free_dns_request (proc); =20 /* This process should not already be connected (or killed). */ - if (!EQ (p->status, Qconnect)) + if (! connecting (p)) return Qnil; =20 return addrinfos; @@ -4697,8 +4708,7 @@ check_for_dns (Lisp_Object proc) static void wait_for_socket_fds (Lisp_Object process, char const *name) { - while (XPROCESS (process)->infd < 0 - && EQ (XPROCESS (process)->status, Qconnect)) + while (XPROCESS (process)->infd < 0 && connecting (XPROCESS (process))= ) { add_to_log ("Waiting for socket from %s...", build_string (name));= wait_reading_process_output (0, 20 * 1000 * 1000, 0, 0, Qnil, NULL= , 0); @@ -4708,7 +4718,7 @@ wait_for_socket_fds (Lisp_Object process, char cons= t *name) static void wait_while_connecting (Lisp_Object process) { - while (EQ (XPROCESS (process)->status, Qconnect)) + while (connecting (XPROCESS (process))) { add_to_log ("Waiting for connection..."); wait_reading_process_output (0, 20 * 1000 * 1000, 0, 0, Qnil, NULL= , 0); @@ -5010,7 +5020,7 @@ wait_reading_process_output (intmax_t time_limit, i= nt nsecs, int read_kbd, update_status (wait_proc); if (wait_proc && ! EQ (wait_proc->status, Qrun) - && ! EQ (wait_proc->status, Qconnect)) + && ! connecting (wait_proc)) { bool read_some_bytes =3D false; =20 @@ -5520,9 +5530,18 @@ wait_reading_process_output (intmax_t time_limit, = int nsecs, int read_kbd, #endif if (xerrno) { - p->tick =3D ++process_tick; - pset_status (p, list2 (Qfailed, make_number (xerrno))); + Lisp_Object addrinfos + =3D connecting (p) ? XCDR (p->status) : Qnil; + if (!NILP (addrinfos)) + XSETCDR (p->status, XCDR (addrinfos)); + else + { + p->tick =3D ++process_tick; + pset_status (p, list2 (Qfailed, make_number (xerrno))); + } deactivate_process (proc); + if (!NILP (addrinfos)) + connect_network_socket (proc, addrinfos, Qnil); } else { @@ -6999,7 +7018,7 @@ status_notify (struct Lisp_Process *deleting_proces= s, =20 /* If process is still active, read any output that remains. */ while (! EQ (p->filter, Qt) - && ! EQ (p->status, Qconnect) + && ! connecting (p) && ! EQ (p->status, Qlisten) /* Network or serial process not stopped: */ && ! EQ (p->command, Qt) diff --git a/src/process.h b/src/process.h index 4430377..6c227bc 100644 --- a/src/process.h +++ b/src/process.h @@ -83,7 +83,9 @@ struct Lisp_Process Lisp_Object mark; =20 /* Symbol indicating status of process. - This may be a symbol: run, open, closed, listen, connect, or fail= ed. + This may be a symbol: run, open, closed, listen, or failed. + Or it may be a pair (connect . ADDRINFOS) where ADDRINFOS is + a list of remaining (PROTOCOL . ADDRINFO) pairs to try. Or it may be (failed ERR) where ERR is an integer, string or symb= ol. Or it may be a list, whose car is stop, exit or signal and whose cdr is a pair (EXIT_CODE . COREDUMP_FLAG) --=20 2.5.5 --------------050208000509010000050807-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 12 14:38:26 2016 Received: (at control) by debbugs.gnu.org; 12 Jun 2016 18:38:26 +0000 Received: from localhost ([127.0.0.1]:38258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCAHB-0002Jr-QB for submit@debbugs.gnu.org; Sun, 12 Jun 2016 14:38:25 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCAHA-0002Je-P3 for control@debbugs.gnu.org; Sun, 12 Jun 2016 14:38:25 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6B4901613DB for ; Sun, 12 Jun 2016 11:38:19 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id gMOCgpMPj89k for ; Sun, 12 Jun 2016 11:38:18 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A3E121613EE for ; Sun, 12 Jun 2016 11:38:18 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id bi9Z6Vq1XFxk for ; Sun, 12 Jun 2016 11:38:18 -0700 (PDT) Received: from [192.168.1.9] (unknown [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8A0AC1613DB for ; Sun, 12 Jun 2016 11:38:18 -0700 (PDT) To: control@debbugs.gnu.org From: Paul Eggert Subject: 17976 has a patch and needs more info Organization: UCLA Computer Science Department Message-ID: <575DAC1A.6050306@cs.ucla.edu> Date: Sun, 12 Jun 2016 11:38:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: control 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.4 (-) tags 17976 + patch moreinfo From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 26 17:58:50 2016 Received: (at 17976) by debbugs.gnu.org; 26 Jun 2016 21:58:50 +0000 Received: from localhost ([127.0.0.1]:57097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHI4o-0006SL-4Z for submit@debbugs.gnu.org; Sun, 26 Jun 2016 17:58:50 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:56152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHI4m-0006S5-DP; Sun, 26 Jun 2016 17:58:49 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6E764160255; Sun, 26 Jun 2016 14:58:42 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id OZcxVWX_plC5; Sun, 26 Jun 2016 14:58:40 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id ACA8A1613DB; Sun, 26 Jun 2016 14:58:40 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id s7l70LjzsmwX; Sun, 26 Jun 2016 14:58:40 -0700 (PDT) Received: from [192.168.1.15] (host243-162-static.0-79-b.business.telecomitalia.it [79.0.162.243]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id ADE30160255; Sun, 26 Jun 2016 14:58:38 -0700 (PDT) To: 17976@debbugs.gnu.org From: Paul Eggert Subject: Re: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 Message-ID: <57705005.2060608@cs.ucla.edu> Date: Sun, 26 Jun 2016 23:58:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080704050302000603090504" X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 17976 Cc: Juliusz Chroboczek , Andreas Schwab , 23620@debbugs.gnu.org, Artur Malabarba , Lars Ingebrigtsen , Eli Zaretskii 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 (-) This is a multi-part message in MIME format. --------------080704050302000603090504 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit No further comment on the proposed patch, and as it should be a win for non-WINDOWSNT I decided to install it on the Emacs master branch. I looked into how libcurl addresses the issue, and it doesn't care whether the errno value reported by getsockopt is ECONNREFUSED so I adjusted the Emacs patch accordingly (see attached) before installing. Please give it a try if you have the time. This patch does not affect behavior if WINDOWSNT. If the bug does not occur on MS-Windows I hope we can close Bug#17976. Otherwise we should leave the bug open for the WINDOWSNT case. --------------080704050302000603090504 Content-Type: text/x-patch; name="0001-Try-other-addresses-when-connecting-to-multihomed.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-Try-other-addresses-when-connecting-to-multihomed.patch" >From 6a90b600323afc42ae3bd644d82ba7ea054a816a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 26 Jun 2016 23:27:21 +0200 Subject: [PATCH] Try other addresses when connecting to multihomed Problem reported by Juliusz Chroboczek (Bug#17976) and by Artur Malabarba (Bug#23620). Patch from a suggestion by Andreas Schwab in: http://bugs.gnu.org/17976#39 This patch is for non-MS-Windows platforms. I don't know the situation on MS-Windows. * src/process.c (connecting_status): New function, for (connect . ADDRINFOS). (connect_network_socket, check_for_dns, wait_for_socket_fds) (wait_while_connecting, wait_reading_process_output, status_notify): Use it. (decode_status, Fmake_network_process): Support (connect . ADDRINFOS) status. (connect_network_socket) [!WINDOWSNT]: If the connection failed and there are other addresses to try, do not signal an error; instead, loop around to try the next address. (wait_reading_process_output): Advance to the next address if there are multiple addresses and the first remaining address failed. * src/process.h (struct Lisp_Process.status): Adjust comment to describe (connect . ADDRINFOS). --- src/process.c | 47 +++++++++++++++++++++++++++++++++++------------ src/process.h | 4 +++- 2 files changed, 38 insertions(+), 13 deletions(-) diff --git a/src/process.c b/src/process.c index e669278..ed0c529 100644 --- a/src/process.c +++ b/src/process.c @@ -533,6 +533,14 @@ status_convert (int w) return Qrun; } +/* True if STATUS is that of a process attempting connection. */ + +static bool +connecting_status (Lisp_Object status) +{ + return CONSP (status) && EQ (XCAR (status), Qconnect); +} + /* Given a status-list, extract the three pieces of information and store them individually through the three pointers. */ @@ -542,6 +550,9 @@ decode_status (Lisp_Object l, Lisp_Object *symbol, Lisp_Object *code, { Lisp_Object tem; + if (connecting_status (l)) + l = XCAR (l); + if (SYMBOLP (l)) { *symbol = l; @@ -3288,9 +3299,10 @@ connect_network_socket (Lisp_Object proc, Lisp_Object addrinfos, eassert (FD_ISSET (s, &fdset)); if (getsockopt (s, SOL_SOCKET, SO_ERROR, &xerrno, &len) < 0) report_file_error ("Failed getsockopt", Qnil); - if (xerrno) + if (xerrno == 0) + break; + if (NILP (addrinfos)) report_file_errno ("Failed connect", Qnil, xerrno); - break; } #endif /* !WINDOWSNT */ @@ -3399,7 +3411,9 @@ connect_network_socket (Lisp_Object proc, Lisp_Object addrinfos, /* We may get here if connect did succeed immediately. However, in that case, we still need to signal this like a non-blocking connection. */ - pset_status (p, Qconnect); + if (! (connecting_status (p->status) + && EQ (XCDR (p->status), addrinfos))) + pset_status (p, Fcons (Qconnect, addrinfos)); if (!FD_ISSET (inch, &connect_wait_mask)) { FD_SET (inch, &connect_wait_mask); @@ -3960,7 +3974,7 @@ usage: (make-network-process &rest ARGS) */) if (!p->is_server && NILP (addrinfos)) { p->dns_request = dns_request; - p->status = Qconnect; + p->status = list1 (Qconnect); return proc; } #endif @@ -4673,7 +4687,7 @@ check_for_dns (Lisp_Object proc) addrinfos = Fnreverse (addrinfos); } /* The DNS lookup failed. */ - else if (EQ (p->status, Qconnect)) + else if (connecting_status (p->status)) { deactivate_process (proc); pset_status (p, (list2 @@ -4686,7 +4700,7 @@ check_for_dns (Lisp_Object proc) free_dns_request (proc); /* This process should not already be connected (or killed). */ - if (!EQ (p->status, Qconnect)) + if (! connecting_status (p->status)) return Qnil; return addrinfos; @@ -4698,7 +4712,7 @@ static void wait_for_socket_fds (Lisp_Object process, char const *name) { while (XPROCESS (process)->infd < 0 - && EQ (XPROCESS (process)->status, Qconnect)) + && connecting_status (XPROCESS (process)->status)) { add_to_log ("Waiting for socket from %s...", build_string (name)); wait_reading_process_output (0, 20 * 1000 * 1000, 0, 0, Qnil, NULL, 0); @@ -4708,7 +4722,7 @@ wait_for_socket_fds (Lisp_Object process, char const *name) static void wait_while_connecting (Lisp_Object process) { - while (EQ (XPROCESS (process)->status, Qconnect)) + while (connecting_status (XPROCESS (process)->status)) { add_to_log ("Waiting for connection..."); wait_reading_process_output (0, 20 * 1000 * 1000, 0, 0, Qnil, NULL, 0); @@ -5010,7 +5024,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd, update_status (wait_proc); if (wait_proc && ! EQ (wait_proc->status, Qrun) - && ! EQ (wait_proc->status, Qconnect)) + && ! connecting_status (wait_proc->status)) { bool read_some_bytes = false; @@ -5520,9 +5534,18 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd, #endif if (xerrno) { - p->tick = ++process_tick; - pset_status (p, list2 (Qfailed, make_number (xerrno))); + Lisp_Object addrinfos + = connecting_status (p->status) ? XCDR (p->status) : Qnil; + if (!NILP (addrinfos)) + XSETCDR (p->status, XCDR (addrinfos)); + else + { + p->tick = ++process_tick; + pset_status (p, list2 (Qfailed, make_number (xerrno))); + } deactivate_process (proc); + if (!NILP (addrinfos)) + connect_network_socket (proc, addrinfos, Qnil); } else { @@ -6999,7 +7022,7 @@ status_notify (struct Lisp_Process *deleting_process, /* If process is still active, read any output that remains. */ while (! EQ (p->filter, Qt) - && ! EQ (p->status, Qconnect) + && ! connecting_status (p->status) && ! EQ (p->status, Qlisten) /* Network or serial process not stopped: */ && ! EQ (p->command, Qt) diff --git a/src/process.h b/src/process.h index 4430377..6c227bc 100644 --- a/src/process.h +++ b/src/process.h @@ -83,7 +83,9 @@ struct Lisp_Process Lisp_Object mark; /* Symbol indicating status of process. - This may be a symbol: run, open, closed, listen, connect, or failed. + This may be a symbol: run, open, closed, listen, or failed. + Or it may be a pair (connect . ADDRINFOS) where ADDRINFOS is + a list of remaining (PROTOCOL . ADDRINFO) pairs to try. Or it may be (failed ERR) where ERR is an integer, string or symbol. Or it may be a list, whose car is stop, exit or signal and whose cdr is a pair (EXIT_CODE . COREDUMP_FLAG) -- 2.5.5 --------------080704050302000603090504-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 26 19:21:14 2016 Received: (at 17976) by debbugs.gnu.org; 26 Jun 2016 23:21:14 +0000 Received: from localhost ([127.0.0.1]:57123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHJMX-00007I-RC for submit@debbugs.gnu.org; Sun, 26 Jun 2016 19:21:13 -0400 Received: from korolev.univ-paris7.fr ([194.254.61.138]:52677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHJMV-00006y-R8; Sun, 26 Jun 2016 19:21:12 -0400 Received: from potemkin.univ-paris7.fr (potemkin.univ-paris7.fr [IPv6:2001:660:3301:8000::1:1]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/56228) with ESMTP id u5QNKtmv014329 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 27 Jun 2016 01:20:55 +0200 Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by potemkin.univ-paris7.fr (8.14.4/8.14.4/relay2/56228) with ESMTP id u5QNKtFW017143; Mon, 27 Jun 2016 01:20:55 +0200 Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id EBECF61FA2; Mon, 27 Jun 2016 01:20:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id GZ4Ywm6JzqMz; Mon, 27 Jun 2016 01:20:53 +0200 (CEST) Received: from trurl.pps.univ-paris-diderot.fr (col75-1-78-194-40-74.fbxo.proxad.net [78.194.40.74]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id 72ECD61F9D; Mon, 27 Jun 2016 01:20:52 +0200 (CEST) Date: Mon, 27 Jun 2016 01:20:52 +0200 Message-ID: <87ziq7tu3v.wl-jch@pps.univ-paris-diderot.fr> From: Juliusz Chroboczek To: Paul Eggert Subject: Re: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 In-Reply-To: <57705005.2060608@cs.ucla.edu> References: <57705005.2060608@cs.ucla.edu> User-Agent: Wanderlust/2.15.9 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]); Mon, 27 Jun 2016 01:20:56 +0200 (CEST) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (potemkin.univ-paris7.fr [194.254.61.141]); Mon, 27 Jun 2016 01:20:55 +0200 (CEST) X-Miltered: at korolev with ID 57706357.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-Miltered: at potemkin with ID 57706357.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 57706357.000 from potemkin.univ-paris7.fr/potemkin.univ-paris7.fr/null/potemkin.univ-paris7.fr/ X-j-chkmail-Enveloppe: 57706357.000 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/ X-j-chkmail-Score: MSGID : 57706357.000 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Score: MSGID : 57706357.000 on potemkin.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-j-chkmail-Status: Ham X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 17976 Cc: Andreas Schwab , 23620@debbugs.gnu.org, Artur Malabarba , 17976@debbugs.gnu.org, Lars Ingebrigtsen , Eli Zaretskii 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: -0.0 (/) Hi Paul, I'm the original submitter of #17976. I can confirm that I still see the bug with Emacs 25, and I don't see the bug with current trunk (commit g2989ad9). I'm not sure if it's possible, but I'd appreciate it if this patch could be backported to Emacs 25 (which is what I run usually). Thanks for your help, -- Juliusz Chroboczek From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 15:58:01 2016 Received: (at control) by debbugs.gnu.org; 7 Dec 2016 20:58:01 +0000 Received: from localhost ([127.0.0.1]:60319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEjHt-0006Ix-8p for submit@debbugs.gnu.org; Wed, 07 Dec 2016 15:58:01 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEjHs-0006Ii-9T for control@debbugs.gnu.org; Wed, 07 Dec 2016 15:58:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEjHi-0006vd-4w for control@debbugs.gnu.org; Wed, 07 Dec 2016 15:57:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEjHi-0006vY-2h for control@debbugs.gnu.org; Wed, 07 Dec 2016 15:57:50 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cEjHh-0001g1-PG for control@debbugs.gnu.org; Wed, 07 Dec 2016 15:57:49 -0500 Subject: control message for bug 17976 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 07 Dec 2016 15:57:49 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: control 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: -8.0 (--------) fixed 17976 26.1 tag 17976 - moreinfo From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 21 19:55:44 2017 Received: (at 17976) by debbugs.gnu.org; 21 Oct 2017 23:55:44 +0000 Received: from localhost ([127.0.0.1]:54775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e63cF-0006ZE-Ov for submit@debbugs.gnu.org; Sat, 21 Oct 2017 19:55:44 -0400 Received: from mail-it0-f49.google.com ([209.85.214.49]:49674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e63cE-0006Ys-9e; Sat, 21 Oct 2017 19:55:42 -0400 Received: by mail-it0-f49.google.com with SMTP id y15so2307903ita.4; Sat, 21 Oct 2017 16:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=O2ZUhao+sZNnn41OyYOOwSLy64LlubDgF6722ggkgug=; b=n8LRo2W/4JAhdltw7ug+AoQ7BaAK3naSRwby7b2Nbrpogk5PaDQC0nXFBAAFsTZTrZ mezQ4ctSk7kN1qLp6gNRkCET6NZktRbJ8xsM0HvKYeB9+Jo86PKcxHpTjg1tsiX5oCIK CD3Et/Xv1ECx3ADWIJjXFSk5CGwhsymiKXBQW6DcF8JIIz2bpSPah9GzjCVlEAracbVX yx0rUq+JCv2oa931EaEYi0KlcDhpbncNpIAojdfN9n+1xdt6hkh9RDlJQ1NINa0QsR/7 GeXw0s2Elpq+LYLioQGa81klr+WaFHISVrwo1TlkqR6KnqMfgm/Yft8w7SP3zsaefcwA 95Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=O2ZUhao+sZNnn41OyYOOwSLy64LlubDgF6722ggkgug=; b=h0l3mhaCpVRKTuIHYiHgBOhRcFS3IAQWZE5bhKjnNLgvVadwTqQJzYU6JFsZf7rRln gHg+L48WR7cpt1K4Hd01J7RU3B1CCJgZcCKzUMpCoQGu3sqJAaKNhLXKKfeQpcyzeG7n K6hqMbMCLeULj7bqlUuo1j1KRyKU+sm7Bdw3kcj4ZYNs3vXel+9WWEUvV3PnXPeNonJB UXd3P5RCD7ftULTlYWy9hBsr/t39ut0YqrXZCFcEz3XiSuQw0cdezJ3cxI9Tnl4b6d/p ZyK0gv6xHXi60q8G6/egQon+jV98QPsQ8ts3ivEzD7HfHEgCooXtiF4JVpzdFf/J0Ort szlg== X-Gm-Message-State: AMCzsaWgQR+Z3zOVk1NpeGHngnlM1PYT472eAVCx67QbdJrlUPdDzOLt 29y6F4bs6jtQIsMW42p/Iej+qaBe X-Google-Smtp-Source: ABhQp+Riv/aSK3zEs1vQcuedeZ3z9sBYyjJ1ll275X5WuALuUi2/DcEKXxmi8GOw03cWJ9Tx8iO/bw== X-Received: by 10.36.22.79 with SMTP id a76mr3968595ita.55.1508630136548; Sat, 21 Oct 2017 16:55:36 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id g196sm914229ita.4.2017.10.21.16.55.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Oct 2017 16:55:35 -0700 (PDT) From: Noam Postavsky To: Juliusz Chroboczek Subject: Re: bug#17976: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 References: <57705005.2060608@cs.ucla.edu> <87ziq7tu3v.wl-jch@pps.univ-paris-diderot.fr> Date: Sat, 21 Oct 2017 19:55:34 -0400 In-Reply-To: <87ziq7tu3v.wl-jch@pps.univ-paris-diderot.fr> (Juliusz Chroboczek's message of "Mon, 27 Jun 2016 01:20:52 +0200") Message-ID: <87tvyscayx.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 17976 Cc: Paul Eggert , Andreas Schwab , 23620@debbugs.gnu.org, Artur Malabarba , 17976@debbugs.gnu.org, Lars Ingebrigtsen , Eli Zaretskii 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: 0.7 (/) close 17976 quit Juliusz Chroboczek writes: > I can confirm that I still see the bug with Emacs 25, and I don't see the > bug with current trunk (commit g2989ad9). > > I'm not sure if it's possible, but I'd appreciate it if this patch could > be backported to Emacs 25 (which is what I run usually). I think it's clear enough by now that there's not going to be any more Emacs 25 releases (unless there's another emergency, in which case this patch still won't go in). From unknown Fri Jun 20 18:02:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 19 Nov 2017 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator