GNU bug report logs -
#17976
24.3; url-retrieve-synchronously doesn't fallback to IPv4
Previous Next
Reported by: Juliusz Chroboczek <jch <at> pps.univ-paris-diderot.fr>
Date: Wed, 9 Jul 2014 12:39:02 UTC
Severity: normal
Tags: confirmed, patch
Merged with 23620
Found in versions 25.0.94, 24.3
Fixed in version 26.1
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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
..."
This bug report was last modified 7 years and 214 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.