From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juliusz Chroboczek Newsgroups: gmane.emacs.devel Subject: Re: url-retrieve & Emacs 25.2 Date: Wed, 16 Aug 2017 20:39:16 +0200 Message-ID: <87lgmjmk6j.fsf@trurl.irif.fr> References: <87a830im9k.fsf@petton.fr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1502908821 12445 195.159.176.226 (16 Aug 2017 18:40:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2017 18:40:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 16 20:40:18 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di3El-0002uK-1X for ged-emacs-devel@m.gmane.org; Wed, 16 Aug 2017 20:40:15 +0200 Original-Received: from localhost ([::1]:39256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di3Er-0001z6-Mm for ged-emacs-devel@m.gmane.org; Wed, 16 Aug 2017 14:40:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di3E9-0001xA-D4 for emacs-devel@gnu.org; Wed, 16 Aug 2017 14:39:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1di3E4-0002nY-Go for emacs-devel@gnu.org; Wed, 16 Aug 2017 14:39:37 -0400 Original-Received: from [195.159.176.226] (port=36659 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1di3E4-0002mn-97 for emacs-devel@gnu.org; Wed, 16 Aug 2017 14:39:32 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1di3Dr-0008NZ-Di for emacs-devel@gnu.org; Wed, 16 Aug 2017 20:39:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:ES5ugMRk5rQuAPRgfYATgsA6fSo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217591 Archived-At: > With a local http server listening on 127.0.0.1:PORT, `url-retrieve' > fails to open connections on "http://localhost:PORT" with the following > error: > (:error (error connection-failed failed with code 111 > :host localhost :service 3000)) > However, connections to "http://127.0.0.1:PORT" work fine. I suspect that your server is listening on IPv4 only, while Emacs believes that "localhost" works for both IPv6 and IPv4. (Check the contents of /etc/hosts -- is there an IPv6 entry for localhost?) > I cannot reproduce the problem on master where connections to localhost > work fine (curl and browser connections also work fine). Master tries all addresses, where Emacs 25 would try only the first one (the IPv6 one in your case). That's bug 17976. -- Juliusz