* url-retrieve & Emacs 25.2
@ 2017-08-15 20:55 Nicolas Petton
2017-08-16 18:39 ` Juliusz Chroboczek
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Petton @ 2017-08-15 20:55 UTC (permalink / raw)
To: Emacs Devel
[-- Attachment #1: Type: text/plain, Size: 634 bytes --]
Hi,
I'm facing a weird issue with Emacs 25.2:
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 cannot reproduce the problem on master where connections to localhost
work fine (curl and browser connections also work fine).
I tried to find which commit could have fixed the problem, but couldn't.
Does anyone know what was the issue and what fixed it?
Nico
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: url-retrieve & Emacs 25.2
2017-08-15 20:55 url-retrieve & Emacs 25.2 Nicolas Petton
@ 2017-08-16 18:39 ` Juliusz Chroboczek
2017-08-16 20:24 ` Nicolas Petton
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Juliusz Chroboczek @ 2017-08-16 18:39 UTC (permalink / raw)
To: emacs-devel
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: url-retrieve & Emacs 25.2
2017-08-16 18:39 ` Juliusz Chroboczek
@ 2017-08-16 20:24 ` Nicolas Petton
2017-08-16 20:26 ` Nicolas Petton
2017-08-16 20:26 ` Nicolas Petton
2 siblings, 0 replies; 5+ messages in thread
From: Nicolas Petton @ 2017-08-16 20:24 UTC (permalink / raw)
To: Juliusz Chroboczek, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 231 bytes --]
Juliusz Chroboczek <jch@irif.fr> writes:
> I suspect that your server is listening on IPv4 only, while Emacs
> believes that "localhost" works for both IPv6 and IPv4.
Thank you Juliusz, that was indeed the problem.
Cheers,
Nico
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: url-retrieve & Emacs 25.2
2017-08-16 18:39 ` Juliusz Chroboczek
2017-08-16 20:24 ` Nicolas Petton
@ 2017-08-16 20:26 ` Nicolas Petton
2017-08-16 20:26 ` Nicolas Petton
2 siblings, 0 replies; 5+ messages in thread
From: Nicolas Petton @ 2017-08-16 20:26 UTC (permalink / raw)
To: Juliusz Chroboczek, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 231 bytes --]
Juliusz Chroboczek <jch@irif.fr> writes:
> I suspect that your server is listening on IPv4 only, while Emacs
> believes that "localhost" works for both IPv6 and IPv4.
Thank you Juliusz, that was indeed the problem.
Cheers,
Nico
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: url-retrieve & Emacs 25.2
2017-08-16 18:39 ` Juliusz Chroboczek
2017-08-16 20:24 ` Nicolas Petton
2017-08-16 20:26 ` Nicolas Petton
@ 2017-08-16 20:26 ` Nicolas Petton
2 siblings, 0 replies; 5+ messages in thread
From: Nicolas Petton @ 2017-08-16 20:26 UTC (permalink / raw)
To: Juliusz Chroboczek, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 231 bytes --]
Juliusz Chroboczek <jch@irif.fr> writes:
> I suspect that your server is listening on IPv4 only, while Emacs
> believes that "localhost" works for both IPv6 and IPv4.
Thank you Juliusz, that was indeed the problem.
Cheers,
Nico
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-08-16 20:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-15 20:55 url-retrieve & Emacs 25.2 Nicolas Petton
2017-08-16 18:39 ` Juliusz Chroboczek
2017-08-16 20:24 ` Nicolas Petton
2017-08-16 20:26 ` Nicolas Petton
2017-08-16 20:26 ` Nicolas Petton
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.