[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: url-retrieve & Emacs 25.2

From: Juliusz Chroboczek
Subject: Re: url-retrieve & Emacs 25.2
Date: Wed, 16 Aug 2017 20:39:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

> With a local http server listening on, `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 ""; 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]