unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juliusz Chroboczek <jch@irif.fr>
To: emacs-devel@gnu.org
Subject: Re: url-retrieve & Emacs 25.2
Date: Wed, 16 Aug 2017 20:39:16 +0200	[thread overview]
Message-ID: <87lgmjmk6j.fsf@trurl.irif.fr> (raw)
In-Reply-To: 87a830im9k.fsf@petton.fr

> 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




  reply	other threads:[~2017-08-16 18:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-15 20:55 url-retrieve & Emacs 25.2 Nicolas Petton
2017-08-16 18:39 ` Juliusz Chroboczek [this message]
2017-08-16 20:24   ` Nicolas Petton
2017-08-16 20:26   ` Nicolas Petton
2017-08-16 20:26   ` Nicolas Petton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lgmjmk6j.fsf@trurl.irif.fr \
    --to=jch@irif.fr \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).